public void Guide03DeleteAddElement() { using (var stream = new MemoryStream()) { GeneratedDocument.CreatePackage(stream); var testEntities = new TestEntities(stream); testEntities.DeleteElement(stream, Log); testEntities.VerifyDeletedElement(stream, Log); testEntities.AddElement(stream, Log); testEntities.VerifyAddedElemenet(stream, Log); } }
public void Guide03DeleteAddElement() { string originalFilepath = GetTestFilePath(generateDocumentFile); string deleteFilePath = GetTestFilePath(deleteDocumentFile); string addFilePath = GetTestFilePath(addDocumentFile); System.IO.File.Copy(originalFilepath, deleteFilePath, true); testEntities.DeleteElement(deleteFilePath, Log); testEntities.VerifyDeletedElement(deleteFilePath, Log); System.IO.File.Copy(deleteFilePath, addFilePath, true); testEntities.AddElement(addFilePath, Log); testEntities.VerifyAddedElemenet(addFilePath, Log); }