public void Dispatches_visitor()
        {
            var moveTableOperation = new MoveTableOperation("dbo.MyTable", "dbo2");
            var mockVisitor        = new Mock <MigrationOperationSqlGenerator>(new RelationalTypeMapper());
            var builder            = new Mock <IndentedStringBuilder>();

            moveTableOperation.GenerateSql(mockVisitor.Object, builder.Object);

            mockVisitor.Verify(g => g.Generate(moveTableOperation, builder.Object), Times.Once());
        }
Beispiel #2
0
        public void Dispatches_visitor()
        {
            var moveTableOperation = new MoveTableOperation("dbo.MyTable", "dbo2");
            var mockVisitor        = MigrationsTestHelpers.MockSqlGenerator();
            var builder            = new Mock <SqlBatchBuilder>();

            moveTableOperation.GenerateSql(mockVisitor.Object, builder.Object);

            mockVisitor.Verify(g => g.Generate(moveTableOperation, builder.Object), Times.Once());
        }