1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Fix broken test (#3374)

This commit is contained in:
Alex Morask 2023-10-24 08:44:37 -04:00 committed by GitHub
parent c442bae2bc
commit 9007aa6556
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -466,12 +466,10 @@ public class StripeEventServiceTests
var customer = await GetCustomerAsync(); var customer = await GetCustomerAsync();
invoice.Customer = customer; _stripeFacade.GetCustomer(
invoice.CustomerId,
_stripeFacade.GetInvoice( Arg.Any<CustomerGetOptions>())
invoice.Id, .Returns(customer);
Arg.Any<InvoiceGetOptions>())
.Returns(invoice);
// Act // Act
var cloudRegionValid = await _stripeEventService.ValidateCloudRegion(stripeEvent); var cloudRegionValid = await _stripeEventService.ValidateCloudRegion(stripeEvent);
@ -479,9 +477,9 @@ public class StripeEventServiceTests
// Assert // Assert
cloudRegionValid.Should().BeTrue(); cloudRegionValid.Should().BeTrue();
await _stripeFacade.Received(1).GetInvoice( await _stripeFacade.Received(1).GetCustomer(
invoice.Id, invoice.CustomerId,
Arg.Any<InvoiceGetOptions>(), Arg.Any<CustomerGetOptions>(),
Arg.Any<RequestOptions>(), Arg.Any<RequestOptions>(),
Arg.Any<CancellationToken>()); Arg.Any<CancellationToken>());
} }