From 38e11caf5e3272f213c52c00655026c482f76163 Mon Sep 17 00:00:00 2001 From: Alex Morask Date: Fri, 29 Aug 2025 13:37:30 -0500 Subject: [PATCH] Run dotnet format --- .../PushNotificationAdapter.cs | 3 +- .../SetupIntentSucceededHandlerTests.cs | 2 +- .../Services/StripeEventServiceTests.cs | 44 +++++++++---------- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/src/Billing/Services/Implementations/PushNotificationAdapter.cs b/src/Billing/Services/Implementations/PushNotificationAdapter.cs index b0b5cecd60..673ae1415e 100644 --- a/src/Billing/Services/Implementations/PushNotificationAdapter.cs +++ b/src/Billing/Services/Implementations/PushNotificationAdapter.cs @@ -63,7 +63,8 @@ public class PushNotificationAdapter( TargetId = organization.Id, Payload = new OrganizationStatusPushNotification { - OrganizationId = organization.Id, Enabled = organization.Enabled, + OrganizationId = organization.Id, + Enabled = organization.Enabled, }, ExcludeCurrentContext = false, }); diff --git a/test/Billing.Test/Services/SetupIntentSucceededHandlerTests.cs b/test/Billing.Test/Services/SetupIntentSucceededHandlerTests.cs index 2254ecb44c..ab3d533656 100644 --- a/test/Billing.Test/Services/SetupIntentSucceededHandlerTests.cs +++ b/test/Billing.Test/Services/SetupIntentSucceededHandlerTests.cs @@ -1,4 +1,4 @@ -using Bit.Billing.Services; +using Bit.Billing.Services; using Bit.Billing.Services.Implementations; using Bit.Core.AdminConsole.Entities; using Bit.Core.AdminConsole.Entities.Provider; diff --git a/test/Billing.Test/Services/StripeEventServiceTests.cs b/test/Billing.Test/Services/StripeEventServiceTests.cs index cf3b930c5b..68aeab2f44 100644 --- a/test/Billing.Test/Services/StripeEventServiceTests.cs +++ b/test/Billing.Test/Services/StripeEventServiceTests.cs @@ -658,11 +658,11 @@ public class StripeEventServiceTests var stripeEvent = CreateMockEvent("evt_test", "setup_intent.succeeded", mockSetupIntent); var organizationId = Guid.NewGuid(); var organizationCustomerId = "cus_org_test"; - - var mockOrganization = new Core.AdminConsole.Entities.Organization - { - Id = organizationId, - GatewayCustomerId = organizationCustomerId + + var mockOrganization = new Core.AdminConsole.Entities.Organization + { + Id = organizationId, + GatewayCustomerId = organizationCustomerId }; var customer = CreateMockCustomer(); @@ -694,11 +694,11 @@ public class StripeEventServiceTests var stripeEvent = CreateMockEvent("evt_test", "setup_intent.succeeded", mockSetupIntent); var providerId = Guid.NewGuid(); var providerCustomerId = "cus_provider_test"; - + var mockProvider = new Core.AdminConsole.Entities.Provider.Provider - { - Id = providerId, - GatewayCustomerId = providerCustomerId + { + Id = providerId, + GatewayCustomerId = providerCustomerId }; var customer = CreateMockCustomer(); @@ -756,17 +756,17 @@ public class StripeEventServiceTests var stripeEvent = CreateMockEvent("evt_test", "setup_intent.succeeded", mockSetupIntent); var subscriberId = Guid.NewGuid(); var providerCustomerId = "cus_provider_test"; - - var mockOrganizationWithoutCustomerId = new Core.AdminConsole.Entities.Organization - { - Id = subscriberId, - GatewayCustomerId = null + + var mockOrganizationWithoutCustomerId = new Core.AdminConsole.Entities.Organization + { + Id = subscriberId, + GatewayCustomerId = null }; - + var mockProvider = new Core.AdminConsole.Entities.Provider.Provider - { - Id = subscriberId, - GatewayCustomerId = providerCustomerId + { + Id = subscriberId, + GatewayCustomerId = providerCustomerId }; var customer = CreateMockCustomer(); @@ -801,11 +801,11 @@ public class StripeEventServiceTests var mockSetupIntent = new SetupIntent { Id = "seti_test" }; var stripeEvent = CreateMockEvent("evt_test", "setup_intent.succeeded", mockSetupIntent); var subscriberId = Guid.NewGuid(); - + var mockProviderWithoutCustomerId = new Core.AdminConsole.Entities.Provider.Provider - { - Id = subscriberId, - GatewayCustomerId = null + { + Id = subscriberId, + GatewayCustomerId = null }; _setupIntentCache.GetSubscriberIdForSetupIntent(mockSetupIntent.Id)