Ejemplo n.º 1
0
        public void AccessRequest_DefaultConstructor()
        {
            // Arrange
            // Act
            var accessRequest = new PimsAccessRequest();

            // Assert
            accessRequest.User.Should().BeNull();
            accessRequest.Role.Should().BeNull();
            accessRequest.AccessRequestStatusTypeCode.Should().BeNull();
            accessRequest.GetOrganizations().Should().BeEmpty();
        }
Ejemplo n.º 2
0
        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();
        }