The core infrastructure backend (API, database, Docker, etc).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
618 B

using AutoFixture;
using Bit.Core.SecretsManager.Entities;
using Bit.Test.Common.AutoFixture.Attributes;
namespace Bit.Core.Test.SecretsManager.AutoFixture.ProjectsFixture;
public class ProjectCustomization : ICustomization
{
public void Customize(IFixture fixture)
{
var projectId = Guid.NewGuid();
fixture.Customize<Project>(composer => composer
.With(p => p.Id, projectId)
.Without(s => s.Secrets));
}
}
public class ProjectCustomizeAttribute : BitCustomizeAttribute
{
public override ICustomization GetCustomization() => new ProjectCustomization();
}