public void AccessRequestRoleRoleIdComparer_Equal(AccessRequestRole val1, AccessRequestRole val2, bool expectedResult)
        {
            // Arrange
            var comparer = new AccessRequestRoleRoleIdComparer();

            // Act
            var result = comparer.Equals(val1, val2);

            // Assert
            result.Should().Be(expectedResult);
        }
Пример #2
0
        public void AccessRequestRole_Id_Constructor()
        {
            // Arrange
            var accessRequest = EntityHelper.CreateAccessRequest(5);
            var role          = EntityHelper.CreateRole("role");

            // Act
            var accessRequestAgency = new AccessRequestRole(accessRequest.Id, role.Id);

            // Assert
            accessRequestAgency.AccessRequestId.Should().Be(accessRequest.Id);
            accessRequestAgency.RoleId.Should().Be(role.Id);
        }