mirror of
https://github.com/bitwarden/server.git
synced 2025-12-10 15:55:10 -06:00
* Moved license models to billing * Moved LicensingService to billing * Moved license command and queries to billing * Moved LicenseController to billing
19 lines
605 B
C#
19 lines
605 B
C#
using AutoFixture;
|
|
using Bit.Core.Billing.Models.Business;
|
|
using Bit.Test.Common.AutoFixture.Attributes;
|
|
|
|
namespace Bit.Core.Test.Billing.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('-', '+')));
|
|
}
|
|
}
|