Esempio n. 1
0
        public XmlDataWriter(string exportDirectory, IScriptMessageManager messageManager)
        {
            Throw.If(exportDirectory, "exportDirectory").IsEmpty();
            Throw.If(messageManager, "messageManager").IsNull();

            this.exportDirectory = exportDirectory;
            this.messageManager  = messageManager;
        }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
 public SqlServerBatchExecutor(IScriptMessageManager messageManager)
     : base("GO", messageManager)
 {
 }
Esempio n. 4
0
 public BatchExecutor(string batchDelimiter, IScriptMessageManager messageManager)
 {
     Throw.If(messageManager, "MessageManager").IsNull();
     BatchDelimiter      = batchDelimiter;
     this.messageManager = messageManager;
 }