public void TestValidatePropertiesReturnsFalseIfMissingData() { var validErrorAttachmentLog = new ErrorAttachmentLog { ContentType = "ContentType", ErrorId = Guid.NewGuid(), Id = Guid.NewGuid() }; Assert.IsFalse(validErrorAttachmentLog.ValidatePropertiesForAttachment()); }
public void TestValidatePropertiesReturnsFalseIfInvalidAttachId() { var validErrorAttachmentLog = new ErrorAttachmentLog { Data = new byte[] { 1, 2, 3, 4 }, ErrorId = Guid.NewGuid(), ContentType = "ContentType", }; Assert.IsFalse(validErrorAttachmentLog.ValidatePropertiesForAttachment()); }
public void TestValidatePropertiesReturnsTrueIfValidData() { var validErrorAttachmentLog = new ErrorAttachmentLog { ContentType = "ContentType", ErrorId = Guid.NewGuid(), Data = new byte[] { 1, 2, 3, 4 }, Id = Guid.NewGuid() }; Assert.IsTrue(validErrorAttachmentLog.ValidatePropertiesForAttachment()); }