Esempio n. 1
0
        public void Should_Construct_CommitteeUser()
        {
            var committeeUser = new CommitteeUser(CommitteeId, UserProfileId, UserRoleId);

            committeeUser.ShouldNotBeNull();
            committeeUser.CommitteeId.ShouldBe(CommitteeId);
            committeeUser.UserProfileId.ShouldBe(UserProfileId);
            committeeUser.UserRoleId.ShouldBe(UserRoleId);
        }
Esempio n. 2
0
        public void Should_DeActive_CommitteeUser()
        {
            var committeeUser = new CommitteeUser(CommitteeId, UserProfileId, UserRoleId, RelatedAgencyCode);

            committeeUser.DeActive();

            committeeUser.ShouldNotBeNull();
            committeeUser.IsActive.ShouldNotBeNull();
            committeeUser.IsActive.Value.ShouldBeFalse();
        }
Esempio n. 3
0
        public void Should_Construct_CommitteeUser_With_AgencyCode()
        {
            var committeeUser = new CommitteeUser(CommitteeId, UserProfileId, UserRoleId, RelatedAgencyCode);

            committeeUser.ShouldNotBeNull();
            committeeUser.CommitteeId.ShouldBe(CommitteeId);
            committeeUser.UserProfileId.ShouldBe(UserProfileId);
            committeeUser.UserRoleId.ShouldBe(UserRoleId);
            committeeUser.RelatedAgencyCode.ShouldBe(RelatedAgencyCode);
        }
Esempio n. 4
0
        public void Should_Empty_Construct_CommitteeUser()
        {
            var committeeUser = new CommitteeUser();

            committeeUser.ShouldNotBeNull();
            committeeUser.CommitteeUserId.ShouldBe(0);
            committeeUser.RoleName.ShouldBeNullOrEmpty();
            committeeUser.UserRole.ShouldBeNull();
            committeeUser.UserProfile.ShouldBeNull();
            committeeUser.Committee.ShouldBeNull();
        }