diff --git a/bitwarden_license/src/Commercial.Core/Billing/BusinessUnitConverter.cs b/bitwarden_license/src/Commercial.Core/Billing/BusinessUnitConverter.cs index 5e14a06f0c..97d9377cd6 100644 --- a/bitwarden_license/src/Commercial.Core/Billing/BusinessUnitConverter.cs +++ b/bitwarden_license/src/Commercial.Core/Billing/BusinessUnitConverter.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using System.Diagnostics.CodeAnalysis; using Bit.Core; using Bit.Core.AdminConsole.Entities; @@ -208,7 +208,8 @@ public class BusinessUnitConverter( var createProviderOrganization = providerOrganizationRepository.CreateAsync(new ProviderOrganization { - ProviderId = provider.Id, OrganizationId = organization.Id + ProviderId = provider.Id, + OrganizationId = organization.Id }); var createProviderPlan = providerPlanRepository.CreateAsync(new ProviderPlan diff --git a/bitwarden_license/test/Commercial.Core.Test/Billing/BusinessUnitConverterTests.cs b/bitwarden_license/test/Commercial.Core.Test/Billing/BusinessUnitConverterTests.cs index 21513aecc7..5d2d0a2c7c 100644 --- a/bitwarden_license/test/Commercial.Core.Test/Billing/BusinessUnitConverterTests.cs +++ b/bitwarden_license/test/Commercial.Core.Test/Billing/BusinessUnitConverterTests.cs @@ -44,7 +44,7 @@ public class BusinessUnitConverterTests private readonly ISubscriberService _subscriberService = Substitute.For(); private readonly IUserRepository _userRepository = Substitute.For(); - private BusinessUnitConverter BuildConverter() => new ( + private BusinessUnitConverter BuildConverter() => new( _dataProtectionProvider, _globalSettings, _logger, @@ -222,7 +222,8 @@ public class BusinessUnitConverterTests var user = new User { - Id = Guid.NewGuid(), Email = providerAdminEmail + Id = Guid.NewGuid(), + Email = providerAdminEmail }; _userRepository.GetByEmailAsync(providerAdminEmail).Returns(user); @@ -297,7 +298,8 @@ public class BusinessUnitConverterTests var user = new User { - Id = Guid.NewGuid(), Email = providerAdminEmail + Id = Guid.NewGuid(), + Email = providerAdminEmail }; _providerOrganizationRepository.GetByOrganizationId(organization.Id) @@ -472,7 +474,9 @@ public class BusinessUnitConverterTests var providerPlan = new ProviderPlan { - Id = Guid.NewGuid(), ProviderId = provider.Id, PlanType = PlanType.EnterpriseAnnually + Id = Guid.NewGuid(), + ProviderId = provider.Id, + PlanType = PlanType.EnterpriseAnnually }; _providerPlanRepository.GetByProviderId(provider.Id).Returns([providerPlan]); diff --git a/src/Admin/Billing/Controllers/BusinessUnitConversionController.cs b/src/Admin/Billing/Controllers/BusinessUnitConversionController.cs index 390aa57d5d..2421710d41 100644 --- a/src/Admin/Billing/Controllers/BusinessUnitConversionController.cs +++ b/src/Admin/Billing/Controllers/BusinessUnitConversionController.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using Bit.Admin.Billing.Models; using Bit.Admin.Enums; using Bit.Admin.Utilities; diff --git a/src/Admin/Billing/Models/BusinessUnitConversionModel.cs b/src/Admin/Billing/Models/BusinessUnitConversionModel.cs index 2ea94d6cc8..2f2165e5ab 100644 --- a/src/Admin/Billing/Models/BusinessUnitConversionModel.cs +++ b/src/Admin/Billing/Models/BusinessUnitConversionModel.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using System.ComponentModel.DataAnnotations; using Bit.Core.AdminConsole.Entities; using Microsoft.AspNetCore.Mvc.ModelBinding; diff --git a/src/Api/Billing/Controllers/OrganizationBillingController.cs b/src/Api/Billing/Controllers/OrganizationBillingController.cs index 4a9682d7ef..1d4ebc1511 100644 --- a/src/Api/Billing/Controllers/OrganizationBillingController.cs +++ b/src/Api/Billing/Controllers/OrganizationBillingController.cs @@ -13,7 +13,6 @@ using Bit.Core.Services; using Bit.Core.Utilities; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using OneOf.Types; namespace Bit.Api.Billing.Controllers; diff --git a/src/Api/Billing/Models/Requests/SetupBusinessUnitRequestBody.cs b/src/Api/Billing/Models/Requests/SetupBusinessUnitRequestBody.cs index fa1b839441..c4b87a01f5 100644 --- a/src/Api/Billing/Models/Requests/SetupBusinessUnitRequestBody.cs +++ b/src/Api/Billing/Models/Requests/SetupBusinessUnitRequestBody.cs @@ -1,4 +1,4 @@ -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; namespace Bit.Api.Billing.Models.Requests; diff --git a/src/Core/Billing/Services/IBusinessUnitConverter.cs b/src/Core/Billing/Services/IBusinessUnitConverter.cs index 56c031892e..06ff883eae 100644 --- a/src/Core/Billing/Services/IBusinessUnitConverter.cs +++ b/src/Core/Billing/Services/IBusinessUnitConverter.cs @@ -1,4 +1,4 @@ -using Bit.Core.AdminConsole.Entities; +using Bit.Core.AdminConsole.Entities; using Bit.Core.AdminConsole.Entities.Provider; using Bit.Core.AdminConsole.Enums.Provider; using OneOf; diff --git a/src/Core/Models/Mail/Billing/BusinessUnitConversionInviteModel.cs b/src/Core/Models/Mail/Billing/BusinessUnitConversionInviteModel.cs index a00df8180c..328d37058b 100644 --- a/src/Core/Models/Mail/Billing/BusinessUnitConversionInviteModel.cs +++ b/src/Core/Models/Mail/Billing/BusinessUnitConversionInviteModel.cs @@ -1,4 +1,4 @@ -namespace Bit.Core.Models.Mail.Billing; +namespace Bit.Core.Models.Mail.Billing; public class BusinessUnitConversionInviteModel : BaseMailModel {