Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tfjanjua authored and ntruchsess committed Nov 13, 2024
1 parent 45814d1 commit e4435a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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(19).And.OnlyHaveUniqueItems();
result.TechnicalUserRoleIds.Should().HaveCount(20).And.OnlyHaveUniqueItems();
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public async Task CompanyRoleCollectionRolesView_GetAll_ReturnsExpected()

// Act
var result = await sut.CompanyRoleCollectionRolesView.ToListAsync();
result.Should().HaveCount(62);
result.Should().HaveCount(63);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public async Task GetOwnCompanyServiceAccountsUntracked_WithOwnerTrue_ReturnsExp

// Assert
result.Should().NotBeNull();
result!.Count.Should().Be(21);
result!.Count.Should().Be(22);
result.Data.Should().HaveCount(10)
.And.AllSatisfy(x => x.Should().Match<CompanyServiceAccountData>(y =>
y.TechnicalUserTypeId == TechnicalUserTypeId.OWN &&
Expand Down Expand Up @@ -371,7 +371,7 @@ public async Task GetOwnCompanyServiceAccountsUntracked_WithSearch_ReturnsExpect

// Assert
result.Should().NotBeNull();
result!.Count.Should().Be(18);
result!.Count.Should().Be(19);
result.Data.Should().HaveCount(10);
}

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(19);
data.Should().HaveCount(20);
}

#endregion
Expand Down Expand Up @@ -110,9 +110,9 @@ 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(19);
data.Should().HaveCount(20);
data.Should().OnlyHaveUniqueItems();
data.Where(x => !x.External).Should().HaveCount(18);
data.Where(x => !x.External).Should().HaveCount(19);
data.Where(x => x.External).Should().ContainSingle();
}

Expand Down

0 comments on commit e4435a5

Please sign in to comment.