From 2ed7acf966976f73976a947ffa8b090b7a76f1c5 Mon Sep 17 00:00:00 2001 From: Alex Morask Date: Wed, 3 Sep 2025 14:16:51 -0500 Subject: [PATCH] Removing unused test --- .../SetupIntentSucceededHandlerTests.cs | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/test/Billing.Test/Services/SetupIntentSucceededHandlerTests.cs b/test/Billing.Test/Services/SetupIntentSucceededHandlerTests.cs index ab3d533656..e9f0d9d0ed 100644 --- a/test/Billing.Test/Services/SetupIntentSucceededHandlerTests.cs +++ b/test/Billing.Test/Services/SetupIntentSucceededHandlerTests.cs @@ -222,38 +222,6 @@ public class SetupIntentSucceededHandlerTests await _pushNotificationAdapter.DidNotReceiveWithAnyArgs().NotifyBankAccountVerifiedAsync(Arg.Any()); } - [Fact] - public async Task HandleAsync_OrganizationNotFound_DoesNotSendNotification() - { - // Arrange - var subscriberId = Guid.NewGuid(); - var setupIntent = CreateSetupIntent(); - - _stripeEventService.GetSetupIntent( - _mockEvent, - true, - Arg.Is>(options => options.SequenceEqual(_expand))) - .Returns(setupIntent); - - _setupIntentCache.GetSubscriberIdForSetupIntent(setupIntent.Id) - .Returns(subscriberId); - - _organizationRepository.GetByIdAsync(subscriberId) - .Returns((Organization?)null); - - _providerRepository.GetByIdAsync(subscriberId) - .Returns((Provider?)null); - - // Act - await _handler.HandleAsync(_mockEvent); - - // Assert - await _stripeAdapter.DidNotReceiveWithAnyArgs().PaymentMethodAttachAsync( - Arg.Any(), Arg.Any()); - await _pushNotificationAdapter.DidNotReceiveWithAnyArgs().NotifyBankAccountVerifiedAsync(Arg.Any()); - await _pushNotificationAdapter.DidNotReceiveWithAnyArgs().NotifyBankAccountVerifiedAsync(Arg.Any()); - } - private static SetupIntent CreateSetupIntent(bool hasUSBankAccount = true) { var paymentMethod = new PaymentMethod