mirror of
https://github.com/bitwarden/server.git
synced 2025-07-14 14:17:35 -05:00
Fix ProviderBillingServiceTests.cs
This commit is contained in:
@ -924,7 +924,11 @@ public class ProviderBillingServiceTests
|
||||
{
|
||||
provider.GatewaySubscriptionId = null;
|
||||
|
||||
sutProvider.GetDependency<ISubscriberService>().GetCustomerOrThrow(provider).Returns(new Customer
|
||||
sutProvider.GetDependency<ISubscriberService>()
|
||||
.GetCustomerOrThrow(
|
||||
provider,
|
||||
Arg.Is<CustomerGetOptions>(p => p.Expand.Contains("tax") || p.Expand.Contains("tax_ids")))
|
||||
.Returns(new Customer
|
||||
{
|
||||
Id = "customer_id",
|
||||
Tax = new CustomerTax { AutomaticTax = StripeConstants.AutomaticTaxStatus.Supported }
|
||||
@ -980,7 +984,10 @@ public class ProviderBillingServiceTests
|
||||
Id = "customer_id",
|
||||
Tax = new CustomerTax { AutomaticTax = StripeConstants.AutomaticTaxStatus.Supported }
|
||||
};
|
||||
sutProvider.GetDependency<ISubscriberService>().GetCustomerOrThrow(provider).Returns(customer);
|
||||
sutProvider.GetDependency<ISubscriberService>()
|
||||
.GetCustomerOrThrow(
|
||||
provider,
|
||||
Arg.Is<CustomerGetOptions>(p => p.Expand.Contains("tax") || p.Expand.Contains("tax_ids"))).Returns(customer);
|
||||
|
||||
var providerPlans = new List<ProviderPlan>
|
||||
{
|
||||
|
Reference in New Issue
Block a user