diff --git a/test/Core.Test/Billing/Stubs/FakeAutomaticTaxStrategy.cs b/test/Core.Test/Billing/Stubs/FakeAutomaticTaxStrategy.cs
index 01a316df7d..253aead5c7 100644
--- a/test/Core.Test/Billing/Stubs/FakeAutomaticTaxStrategy.cs
+++ b/test/Core.Test/Billing/Stubs/FakeAutomaticTaxStrategy.cs
@@ -3,27 +3,33 @@ using Stripe;
namespace Bit.Core.Test.Billing.Stubs;
-///
+///
/// Whether the subscription options will have automatic tax enabled or not.
///
public class FakeAutomaticTaxStrategy(
- bool IsAutomaticTaxEnabled) : IAutomaticTaxStrategy
+ bool isAutomaticTaxEnabled) : IAutomaticTaxStrategy
{
public SubscriptionUpdateOptions? GetUpdateOptions(Subscription subscription)
{
return new SubscriptionUpdateOptions
{
- AutomaticTax = new SubscriptionAutomaticTaxOptions { Enabled = IsAutomaticTaxEnabled }
+ AutomaticTax = new SubscriptionAutomaticTaxOptions { Enabled = isAutomaticTaxEnabled }
};
}
public void SetCreateOptions(SubscriptionCreateOptions options, Customer customer)
{
- options.AutomaticTax = new SubscriptionAutomaticTaxOptions { Enabled = IsAutomaticTaxEnabled };
+ options.AutomaticTax = new SubscriptionAutomaticTaxOptions { Enabled = isAutomaticTaxEnabled };
}
public void SetUpdateOptions(SubscriptionUpdateOptions options, Subscription subscription)
{
- options.AutomaticTax = new SubscriptionAutomaticTaxOptions { Enabled = IsAutomaticTaxEnabled };
+ options.AutomaticTax = new SubscriptionAutomaticTaxOptions { Enabled = isAutomaticTaxEnabled };
+ }
+
+ public void SetInvoiceCreatePreviewOptions(InvoiceCreatePreviewOptions options)
+ {
+ options.AutomaticTax = new InvoiceAutomaticTaxOptions { Enabled = isAutomaticTaxEnabled };
+
}
}