public XmlDataWriter(string exportDirectory, IScriptMessageManager messageManager) { Throw.If(exportDirectory, "exportDirectory").IsEmpty(); Throw.If(messageManager, "messageManager").IsNull(); this.exportDirectory = exportDirectory; this.messageManager = messageManager; }
public void SetUp() { mocks = new MockRepository(); scriptBuilder = mocks.CreateMock <IScriptBuilder>(); msgManager = mocks.DynamicMock <IScriptMessageManager>(); connSettings = mocks.Stub <IConnectionSettings>(); dbComparer = new DatabaseComparer(); engine = new MigrationEngine(scriptBuilder, dbComparer); engine.MessageManager = msgManager; srcDB = new DatabaseStub("SRC_DB"); targetDB = new DatabaseStub("TARGET_DB"); }
public SqlServerBatchExecutor(IScriptMessageManager messageManager) : base("GO", messageManager) { }
public BatchExecutor(string batchDelimiter, IScriptMessageManager messageManager) { Throw.If(messageManager, "MessageManager").IsNull(); BatchDelimiter = batchDelimiter; this.messageManager = messageManager; }