Skip to content

Commit

Permalink
Update test cases
Browse files Browse the repository at this point in the history
Technical User Management as offer id in Registration Internal requires updated tests.
  • Loading branch information
typecastcloud committed Sep 24, 2024
1 parent 2de7c39 commit 788e055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ public async Task GetCompanyIdAndBpnForIamUserUntrackedAsync_WithValidData_Retur
// Assert
result.Should().NotBe(default);
result.Bpn.Should().Be("BPNL00000003CRHK");
result.TechnicalUserRoleIds.Should().HaveCount(13).And.OnlyHaveUniqueItems();
result.TechnicalUserRoleIds.Should().HaveCount(14).And.OnlyHaveUniqueItems();
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async Task GetCoreOfferRolesAsync_WithValidData_ReturnsExpected()
var data = await sut.GetCoreOfferRolesAsync(_validCompanyId, "en", ClientId).ToListAsync();

// Assert
data.Should().HaveCount(13);
data.Should().HaveCount(14);
}

#endregion
Expand Down Expand Up @@ -135,7 +135,7 @@ public async Task GetServiceAccountRolesAsync_WithValidData_ReturnsExpected()
var data = await sut.GetServiceAccountRolesAsync(_validCompanyId, ClientId, Enumerable.Repeat(new Guid("607818be-4978-41f4-bf63-fa8d2de51157"), 1), Constants.DefaultLanguage).ToListAsync();

// Assert
data.Should().HaveCount(13);
data.Should().HaveCount(14);
data.Should().OnlyHaveUniqueItems();
data.Where(x => x.RoleType == UserRoleType.Internal).Should().HaveCount(12);
data.Where(x => x.RoleType == UserRoleType.External).Should().ContainSingle();
Expand Down

0 comments on commit 788e055

Please sign in to comment.