public void PivotConnection03DeleteElement() { using (var stream = new MemoryStream()) { ConnectionGeneratedDocument.CreatePackage(stream); var connectionTestEntities = new ConnectionTestEntities(stream); connectionTestEntities.DeleteElement(stream, Log); connectionTestEntities.VerifyDeletedElement(stream, Log); } }
public void PivotConnection03DeleteAddElement() { string originalFilepath = GetTestFilePath(generatedOldbConnectionDocumentFile); string deleteFilePath = GetTestFilePath(deletedOldbConnectionDocumentFile); string addFilePath = GetTestFilePath(addedOldbConnectionDocumentFile); System.IO.File.Copy(originalFilepath, deleteFilePath, true); connectionTestEntities.DeleteElement(deleteFilePath, Log); connectionTestEntities.VerifyDeletedElement(deleteFilePath, Log); System.IO.File.Copy(deleteFilePath, addFilePath, true); connectionTestEntities.AddElement(addFilePath, Log); connectionTestEntities.VerifyAddedElement(addFilePath, Log); }