public void Should_SetActive() { SupplierOriginalAttachment supplierOriginalAttachment = new SupplierOriginalAttachment(fileName, fileNetReferenceId); supplierOriginalAttachment.SetActive(); Assert.True(supplierOriginalAttachment.IsActive); }
public void Should_UpdateFileName() { SupplierOriginalAttachment supplierOriginalAttachment = new SupplierOriginalAttachment(fileName, fileNetReferenceId); supplierOriginalAttachment.UpdateFileName(fileName); Assert.Equal(supplierOriginalAttachment.FileName, fileName); }
public void Should_Delete() { SupplierOriginalAttachment supplierOriginalAttachment = new SupplierOriginalAttachment(fileName, fileNetReferenceId); supplierOriginalAttachment.Delete(); Assert.Equal(ObjectState.Deleted, supplierOriginalAttachment.State); }
public void Should_Construct_SupplierOriginalAttachment() { _ = new SupplierOriginalAttachment(); SupplierOriginalAttachment supplierOriginalAttachment = new SupplierOriginalAttachment(fileName, fileNetReferenceId); _ = supplierOriginalAttachment.Offer; supplierOriginalAttachment.ShouldNotBeNull(); }