mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 19:14:32 -05:00
[AC-2721] [Defect] Apply Subscription Status Updates in Provider Subscription details (#4184)
* Resolve the past_due date display issue Signed-off-by: Cy Okeke <cokeke@bitwarden.com> * Fix the failing test Signed-off-by: Cy Okeke <cokeke@bitwarden.com> --------- Signed-off-by: Cy Okeke <cokeke@bitwarden.com>
This commit is contained in:
parent
69388b99d5
commit
b392cc962d
@ -242,7 +242,7 @@ public class ProviderBillingService(
|
|||||||
|
|
||||||
var subscription = await subscriberService.GetSubscription(provider, new SubscriptionGetOptions
|
var subscription = await subscriberService.GetSubscription(provider, new SubscriptionGetOptions
|
||||||
{
|
{
|
||||||
Expand = ["customer"]
|
Expand = ["customer", "test_clock"]
|
||||||
});
|
});
|
||||||
|
|
||||||
if (subscription == null)
|
if (subscription == null)
|
||||||
|
@ -719,7 +719,7 @@ public class ProviderBillingServiceTests
|
|||||||
await sutProvider.GetDependency<ISubscriberService>().Received(1).GetSubscription(
|
await sutProvider.GetDependency<ISubscriberService>().Received(1).GetSubscription(
|
||||||
provider,
|
provider,
|
||||||
Arg.Is<SubscriptionGetOptions>(
|
Arg.Is<SubscriptionGetOptions>(
|
||||||
options => options.Expand.Count == 1 && options.Expand.First() == "customer"));
|
options => options.Expand.Count == 2 && options.Expand.First() == "customer" && options.Expand.Last() == "test_clock"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory, BitAutoData]
|
[Theory, BitAutoData]
|
||||||
@ -732,7 +732,7 @@ public class ProviderBillingServiceTests
|
|||||||
var subscription = new Subscription();
|
var subscription = new Subscription();
|
||||||
|
|
||||||
subscriberService.GetSubscription(provider, Arg.Is<SubscriptionGetOptions>(
|
subscriberService.GetSubscription(provider, Arg.Is<SubscriptionGetOptions>(
|
||||||
options => options.Expand.Count == 1 && options.Expand.First() == "customer")).Returns(subscription);
|
options => options.Expand.Count == 2 && options.Expand.First() == "customer" && options.Expand.Last() == "test_clock")).Returns(subscription);
|
||||||
|
|
||||||
var providerPlanRepository = sutProvider.GetDependency<IProviderPlanRepository>();
|
var providerPlanRepository = sutProvider.GetDependency<IProviderPlanRepository>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user