Пример #1
0
        public void Should_RejectRevision()
        {
            TenderDatesChange tenderDatesChange = new TenderDatesChange(DateTime.Now.Date, DateTime.Now.Date, lastOfferPresentationTime,
                                                                        DateTime.Now.Date, offersOpeningTime, DateTime.Now.Date, offersCheckingTime, tenderId);

            tenderDatesChange.RejectRevision(rejectReason);
            Assert.Equal((int)Enums.TenderStatus.Rejected, tenderDatesChange.StatusId);
        }
Пример #2
0
        public void Should_Delete()
        {
            TenderDatesChange tenderDatesChange = new TenderDatesChange(DateTime.Now.Date, DateTime.Now.Date, lastOfferPresentationTime,
                                                                        DateTime.Now.Date, offersOpeningTime, DateTime.Now.Date, offersCheckingTime, tenderId);

            tenderDatesChange.Delete();
            Assert.Equal(ObjectState.Deleted, tenderDatesChange.State);
        }
Пример #3
0
        public void Should_Deactive()
        {
            TenderDatesChange tenderDatesChange = new TenderDatesChange(DateTime.Now.Date, DateTime.Now.Date, lastOfferPresentationTime,
                                                                        DateTime.Now.Date, offersOpeningTime, DateTime.Now.Date, offersCheckingTime, tenderId);

            tenderDatesChange.DeActive();
            Assert.False(tenderDatesChange.IsActive);
        }
Пример #4
0
        public void Should_Construct_TenderDatesChange()
        {
            TenderDatesChange tenderDatesChange = new TenderDatesChange(DateTime.Now.Date, DateTime.Now.Date, lastOfferPresentationTime,
                                                                        DateTime.Now.Date, offersOpeningTime, DateTime.Now.Date, offersCheckingTime, tenderId);

            _ = new TenderDatesChange();

            tenderDatesChange.ShouldNotBeNull();
        }