示例#1
0
        public void Should_DeleteAttachment()
        {
            TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId);

            technicianReportAttachment.DeleteAttachment();
            Assert.Equal(ObjectState.Deleted, technicianReportAttachment.State);
        }
示例#2
0
        public void Should_SetAddedState()
        {
            TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId);

            technicianReportAttachment.SetAddedState();
            Assert.Equal(0, technicianReportAttachment.AttachmentId);
        }
示例#3
0
        public void Should_SetActive()
        {
            TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId);

            technicianReportAttachment.SetActive();
            Assert.True(technicianReportAttachment.IsActive);
        }
示例#4
0
        public void Should_Update()
        {
            TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId);

            technicianReportAttachment.Update("New Name");
            technicianReportAttachment.ShouldNotBeNull();
        }
示例#5
0
        public void Should_UpdatefileNetReferenceId()
        {
            TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId);
            var newfileNetReferenceId = "222";

            technicianReportAttachment.UpdatefileNetReferenceId(newfileNetReferenceId);
            Assert.Equal(newfileNetReferenceId, technicianReportAttachment.FileNetReferenceId);
        }
示例#6
0
        public void Should_Construct_SupplierTenderQuantityTableItemJson()
        {
            TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId);

            _ = new TechnicianReportAttachment();

            technicianReportAttachment.ShouldNotBeNull();
        }