Ejemplo n.º 1
0
        private void Test_IsView()
        {
            const string testView = "vitestview";

            _dbSchema.DropView(testView);
            _commands.ExecuteNonQuery(string.Format("create view {0} as select 'a' as col1 from {1}", testView, _testTable));
            bool viewExists = _dbSchema.IsView(testView);

            _dbSchema.DropView(testView);
            viewExists.Should().BeTrue("because view was created");
        }