mirror of
https://github.com/bitwarden/server.git
synced 2024-11-27 13:05:23 +01:00
59f5285c88
Move SecretsManager files to directories called SecretsManager and add CodeOwners
23 lines
618 B
C#
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();
|
|
}
|