Skip to content

Commit

Permalink
Removed redundant test and moved additional test cases to GetByOrgIdA…
Browse files Browse the repository at this point in the history
…sync_SmNoneFreePlans_ReturnsNull
  • Loading branch information
cturnbull-bitwarden committed Oct 18, 2023
1 parent 8a937e3 commit 1227a28
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,6 @@ await sutProvider.GetDependency<IProjectRepository>()
[BitAutoData(PlanType.EnterpriseAnnually2019)]
[BitAutoData(PlanType.EnterpriseAnnually2020)]
[BitAutoData(PlanType.EnterpriseAnnually)]
public async Task GetByOrgIdAsync_SmPlanIsNull_NoExceptionThrown(PlanType planType,
SutProvider<MaxProjectsQuery> sutProvider, Organization organization)
{
organization.PlanType = planType;
sutProvider.GetDependency<IOrganizationRepository>()
.GetByIdAsync(organization.Id)
.Returns(organization);

await sutProvider.Sut
.GetByOrgIdAsync(organization.Id, 1);

await sutProvider.GetDependency<IProjectRepository>()
.DidNotReceiveWithAnyArgs()
.GetProjectCountByOrganizationIdAsync(organization.Id);
}

[Theory]
[BitAutoData(PlanType.TeamsMonthly)]
[BitAutoData(PlanType.TeamsAnnually)]
[BitAutoData(PlanType.EnterpriseMonthly)]
[BitAutoData(PlanType.EnterpriseAnnually)]
public async Task GetByOrgIdAsync_SmNoneFreePlans_ReturnsNull(PlanType planType,
SutProvider<MaxProjectsQuery> sutProvider, Organization organization)
{
Expand Down

0 comments on commit 1227a28

Please sign in to comment.