mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +01:00
bae03feffe
* Revert "Add git blame entry (#2226)" This reverts commit239286737d
. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a
.
20 lines
639 B
C#
20 lines
639 B
C#
using AutoFixture;
|
|
using Bit.Core.Models.Business;
|
|
using Bit.Test.Common.AutoFixture.Attributes;
|
|
|
|
namespace Bit.Core.Test.AutoFixture
|
|
{
|
|
public class OrganizationLicenseCustomizeAttribute : BitCustomizeAttribute
|
|
{
|
|
public override ICustomization GetCustomization() => new OrganizationLicenseCustomization();
|
|
}
|
|
public class OrganizationLicenseCustomization : ICustomization
|
|
{
|
|
public void Customize(IFixture fixture)
|
|
{
|
|
fixture.Customize<OrganizationLicense>(composer => composer
|
|
.With(o => o.Signature, Guid.NewGuid().ToString().Replace('-', '+')));
|
|
}
|
|
}
|
|
}
|