1
0
mirror of https://github.com/bitwarden/server synced 2025-12-13 23:03:36 +00:00

Use response models in Api integration tests (#2592)

This commit is contained in:
Thomas Avery
2023-01-19 15:20:59 -06:00
committed by GitHub
parent 01b4a4d1d8
commit 41d1e48823
9 changed files with 108 additions and 69 deletions

View File

@@ -5,8 +5,10 @@ namespace Bit.Api.SecretManagerFeatures.Models.Response;
public class ProjectResponseModel : ResponseModel
{
public ProjectResponseModel(Project project, string obj = "project")
: base(obj)
private const string _objectName = "project";
public ProjectResponseModel(Project project)
: base(_objectName)
{
if (project == null)
{
@@ -20,6 +22,10 @@ public class ProjectResponseModel : ResponseModel
RevisionDate = project.RevisionDate;
}
public ProjectResponseModel() : base(_objectName)
{
}
public string Id { get; set; }
public string OrganizationId { get; set; }