mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
59f5285c88
Move SecretsManager files to directories called SecretsManager and add CodeOwners
23 lines
612 B
C#
23 lines
612 B
C#
using AutoFixture;
|
|
using Bit.Core.SecretsManager.Entities;
|
|
using Bit.Test.Common.AutoFixture.Attributes;
|
|
|
|
namespace Bit.Core.Test.SecretsManager.AutoFixture.SecretsFixture;
|
|
|
|
public class SecretCustomization : ICustomization
|
|
{
|
|
public void Customize(IFixture fixture)
|
|
{
|
|
var secretId = Guid.NewGuid();
|
|
|
|
fixture.Customize<Secret>(composer => composer
|
|
.With(o => o.Id, secretId)
|
|
.Without(s => s.Projects));
|
|
}
|
|
}
|
|
|
|
public class SecretCustomizeAttribute : BitCustomizeAttribute
|
|
{
|
|
public override ICustomization GetCustomization() => new SecretCustomization();
|
|
}
|