server/test/Core.Test/Billing/AutoFixture/OrganizationLicenseCustomization.cs
Conner Turnbull 9b65e9f4cc
[PM-22580] Org/User License Codeownership Move (No logic changes) (#6080)
* Moved license models to billing

* Moved LicensingService to billing

* Moved license command and queries to billing

* Moved LicenseController to billing
2025-07-11 16:41:32 -04:00

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