public void Should_DeleteAttachment() { TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId); technicianReportAttachment.DeleteAttachment(); Assert.Equal(ObjectState.Deleted, technicianReportAttachment.State); }
public void Should_SetAddedState() { TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId); technicianReportAttachment.SetAddedState(); Assert.Equal(0, technicianReportAttachment.AttachmentId); }
public void Should_SetActive() { TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId); technicianReportAttachment.SetActive(); Assert.True(technicianReportAttachment.IsActive); }
public void Should_Update() { TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId); technicianReportAttachment.Update("New Name"); technicianReportAttachment.ShouldNotBeNull(); }
public void Should_UpdatefileNetReferenceId() { TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId); var newfileNetReferenceId = "222"; technicianReportAttachment.UpdatefileNetReferenceId(newfileNetReferenceId); Assert.Equal(newfileNetReferenceId, technicianReportAttachment.FileNetReferenceId); }
public void Should_Construct_SupplierTenderQuantityTableItemJson() { TechnicianReportAttachment technicianReportAttachment = new TechnicianReportAttachment(name, fileNetReferenceId, attachmentTypeId); _ = new TechnicianReportAttachment(); technicianReportAttachment.ShouldNotBeNull(); }