From 9007aa6556b808414d09513fbcb014f4f9cfbfad Mon Sep 17 00:00:00 2001 From: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com> Date: Tue, 24 Oct 2023 08:44:37 -0400 Subject: [PATCH] Fix broken test (#3374) --- .../Services/StripeEventServiceTests.cs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/test/Billing.Test/Services/StripeEventServiceTests.cs b/test/Billing.Test/Services/StripeEventServiceTests.cs index f2fe1c8d1..1e4d6c264 100644 --- a/test/Billing.Test/Services/StripeEventServiceTests.cs +++ b/test/Billing.Test/Services/StripeEventServiceTests.cs @@ -466,12 +466,10 @@ public class StripeEventServiceTests var customer = await GetCustomerAsync(); - invoice.Customer = customer; - - _stripeFacade.GetInvoice( - invoice.Id, - Arg.Any()) - .Returns(invoice); + _stripeFacade.GetCustomer( + invoice.CustomerId, + Arg.Any()) + .Returns(customer); // Act var cloudRegionValid = await _stripeEventService.ValidateCloudRegion(stripeEvent); @@ -479,9 +477,9 @@ public class StripeEventServiceTests // Assert cloudRegionValid.Should().BeTrue(); - await _stripeFacade.Received(1).GetInvoice( - invoice.Id, - Arg.Any(), + await _stripeFacade.Received(1).GetCustomer( + invoice.CustomerId, + Arg.Any(), Arg.Any(), Arg.Any()); }