Esempio n. 1
0
        public void Should_UpdateChangStatus()
        {
            var tenderAttachmentChanges = new TenderAttachmentChanges();

            tenderAttachmentChanges.UpdateChangStatus(_changeStatusId, _reviewStatusId, _rejectReason);
            tenderAttachmentChanges.ShouldNotBeNull();
            tenderAttachmentChanges.RejectionReason.ShouldBe(_rejectReason);
            tenderAttachmentChanges.State.ShouldBe(SharedKernal.ObjectState.Modified);
        }
Esempio n. 2
0
        public void Should_SetActive()
        {
            var tenderAttachmentChanges = new TenderAttachmentChanges();

            tenderAttachmentChanges.SetActive();
            tenderAttachmentChanges.ShouldNotBeNull();
            tenderAttachmentChanges.IsActive.ShouldBe(true);
            tenderAttachmentChanges.State.ShouldBe(SharedKernal.ObjectState.Modified);
        }
Esempio n. 3
0
        public void Should_UpdateName()
        {
            var tenderAttachmentChanges = new TenderAttachmentChanges();

            tenderAttachmentChanges.Update(_name);
            tenderAttachmentChanges.ShouldNotBeNull();
            tenderAttachmentChanges.Name.ShouldBe(_name);
            tenderAttachmentChanges.State.ShouldBe(SharedKernal.ObjectState.Modified);
        }
Esempio n. 4
0
        public void Should_Constructor_SetValues()
        {
            var tenderAttachmentChanges = new TenderAttachmentChanges(_name, _fileNetReferenceId, _attachmentTypeId, _deletedAttachmentId);

            tenderAttachmentChanges.ShouldNotBeNull();
            tenderAttachmentChanges.Name.ShouldBe(_name);
            tenderAttachmentChanges.FileNetReferenceId.ShouldBe(_fileNetReferenceId);
            tenderAttachmentChanges.AttachmentTypeId.ShouldBe(_attachmentTypeId);
            tenderAttachmentChanges.DeletedAttachmentId.ShouldBe(_deletedAttachmentId);
            tenderAttachmentChanges.State.ShouldBe(SharedKernal.ObjectState.Added);
        }
Esempio n. 5
0
        public void Should_Empty_Construct_TenderAttachmentChanges()
        {
            var tenderAttachmentChanges = new TenderAttachmentChanges();

            tenderAttachmentChanges.ShouldNotBeNull();
        }