Exemple #1
0
        public void CreateDatabase_adds_operation()
        {
            var builder = new MigrationBuilder();

            builder.CreateDatabase("MyDb");

            Assert.Equal(1, builder.Operations.Count);
            Assert.IsType <CreateDatabaseOperation>(builder.Operations[0]);

            var operation = (CreateDatabaseOperation)builder.Operations[0];

            Assert.Equal("MyDb", operation.DatabaseName);
        }
        public void CreateDatabase_adds_operation()
        {
            var builder = new MigrationBuilder();

            builder.CreateDatabase("MyDb");

            Assert.Equal(1, builder.Operations.Count);
            Assert.IsType<CreateDatabaseOperation>(builder.Operations[0]);

            var operation = (CreateDatabaseOperation)builder.Operations[0];

            Assert.Equal("MyDb", operation.DatabaseName);
        }