Example #1
0
        public void Empty_ConstructBranchCommittee()
        {
            var branchCommittee = new BranchCommittee();

            branchCommittee.ShouldNotBeNull();
            branchCommittee.BranchCommitteeId.ShouldBe(0);
            branchCommittee.Branch.ShouldBeNull();
            branchCommittee.Committee.ShouldBeNull();
        }
Example #2
0
        public void DeActiveBranchCommitteeTest()
        {
            BranchCommittee branchCommittee = branchCommitteeDefaults.ReturnBranchCommitteeDefaults();

            branchCommittee.DeActive();

            Assert.Equal(branchCommitteeDefaults._branchId, branchCommittee.BranchId);
            Assert.Equal(branchCommitteeDefaults._committeeId, branchCommittee.CommitteeId);
            Assert.Equal(DateTime.Now.Date, branchCommittee.CreatedAt.Date);
            Assert.False(branchCommittee.IsActive);
            branchCommittee.ShouldNotBeNull();
            branchCommittee.IsActive.ShouldNotBeNull();
            branchCommittee.IsActive.Value.ShouldBeFalse();
        }