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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user