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); }
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); }
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); }
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(); }