Exemple #1
0
        public void Should_JoinTechnicalCommitee()
        {
            var enquiry = new Enquiry(EnquiryName, TenderId, CommericalRegisterNo);

            enquiry.SetJoinTechnicalCommittees(new List <JoinTechnicalCommittee>());
            enquiry.SetEnquiryReplies(new List <EnquiryReply>());

            enquiry.JoinTechnicalCommitee(1, 1, 1, "comment");

            enquiry.ShouldNotBeNull();
            enquiry.JoinTechnicalCommittees.Count.ShouldBe(1);
            enquiry.EnquiryReplies.Count.ShouldBe(1);
        }
Exemple #2
0
        public void Should_RemoveJoinedCommittee()
        {
            var enquiry = new Enquiry(EnquiryName, TenderId, CommericalRegisterNo);

            enquiry.SetJoinTechnicalCommittees(new List <JoinTechnicalCommittee>());
            enquiry.SetEnquiryReplies(new List <EnquiryReply>());

            enquiry.JoinTechnicalCommitee(1, 1, 1, "comment");

            enquiry.RemoveJoinedCommittee(enquiry.JoinTechnicalCommittees, enquiry.EnquiryReplies, 0, 0);

            enquiry.ShouldNotBeNull();
            enquiry.JoinTechnicalCommittees.Count.ShouldBe(1);
            enquiry.JoinTechnicalCommittees[0].IsActive.ShouldBe(false);
            enquiry.EnquiryReplies.Count.ShouldBe(1);
            enquiry.EnquiryReplies[0].IsActive.ShouldBe(false);
        }