1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-04 14:13:28 +01:00
bitwarden-server/test/Core.Test/SecretsManager/AutoFixture/ProjectFixtures.cs
Oscar Hinton 59f5285c88
[SM-460] Isolate SecretsManager files (#2616)
Move SecretsManager files to directories called SecretsManager and add CodeOwners
2023-01-24 19:57:28 +01:00

23 lines
618 B
C#

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();
}