Skip to content

Commit ae97c8a

Browse files
committed
Revert pricingClient mock, use latest plan instead
1 parent ef7c112 commit ae97c8a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test/Api.IntegrationTest/AdminConsole/Controllers/OrganizationsControllerTests.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@ public class OrganizationsControllerTests : IClassFixture<ApiApplicationFactory>
2828
public OrganizationsControllerTests(ApiApplicationFactory apiFactory)
2929
{
3030
_factory = apiFactory;
31-
_factory.SubstituteService<IPricingClient>(pricingClient =>
32-
{
33-
pricingClient
34-
.GetPlan(Arg.Any<PlanType>())
35-
.Returns(x => MockPlans.Get(x.Arg<PlanType>()));
36-
pricingClient
37-
.GetPlanOrThrow(Arg.Any<PlanType>())
38-
.Returns(x => MockPlans.Get(x.Arg<PlanType>()));
39-
});
4031
_client = _factory.CreateClient();
4132
_loginHelper = new LoginHelper(_factory, _client);
4233
}
@@ -49,7 +40,7 @@ public async Task InitializeAsync()
4940
(_organization, _) = await OrganizationTestHelpers.SignUpAsync(_factory,
5041
name: _organizationName,
5142
billingEmail: _billingEmail,
52-
plan: PlanType.EnterpriseAnnually2023,
43+
plan: PlanType.EnterpriseAnnually,
5344
ownerEmail: _ownerEmail,
5445
passwordManagerSeats: 5,
5546
paymentMethod: PaymentMethodType.Card);

0 commit comments

Comments
 (0)