public void RoleClaim_Constructor_02_ArgumentNullException(PimsRole role, PimsClaim claim) { // Arrange // Act // Assert Assert.Throws <ArgumentNullException>(() => new PimsRoleClaim(role, claim)); }
public void RoleIdComparer_Equal(PimsRole val1, PimsRole val2, bool expectedResult) { // Arrange var comparer = new RoleIdComparer(); // Act var result = comparer.Equals(val1, val2); // Assert result.Should().Be(expectedResult); }
public void AccessRequest_User_Constructor() { // Arrange var user = new PimsUser(); var role = new PimsRole(); var status = new PimsAccessRequestStatusType(); // Act var accessRequest = new PimsAccessRequest(user, role, status); // Assert accessRequest.User.Should().Be(user); accessRequest.Role.Should().Be(role); accessRequest.AccessRequestStatusTypeCodeNavigation.Should().Be(status); accessRequest.GetOrganizations().Should().BeEmpty(); }