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:
parent
c442bae2bc
commit
9007aa6556
@ -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>());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user