protected override void SetUp() { base.SetUp(); _database = GetCleanedServer(FAnsi.DatabaseType.MicrosoftSQLServer); _function.Create(_database, CatalogueRepository); }
public void TestPreExecutionChecker_TableIsTableValuedFunction() { TestableTableValuedFunction f = new TestableTableValuedFunction(); f.Create(DiscoveredDatabaseICanCreateRandomTablesIn, CatalogueRepository); var tbl = f.TableInfoCreated.Discover(DataAccessContext.DataLoad); Assert.IsTrue(tbl.Exists()); var lmd = RdmpMockFactory.Mock_LoadMetadataLoadingTable(f.TableInfoCreated); var checker = new PreExecutionChecker(lmd, new HICDatabaseConfiguration(DiscoveredDatabaseICanCreateRandomTablesIn.Server)); var ex = Assert.Throws <Exception>(() => checker.Check(new ThrowImmediatelyCheckNotifier())); StringAssert.IsMatch("Table '.*MyAwesomeFunction.*' is a TableValuedFunction", ex.Message); }
public void CreateFunction() { _function.Create(GetCleanedServer(DatabaseType.MicrosoftSQLServer), CatalogueRepository); }
private void CreateFunction(ICatalogueRepository repo) { _function = new TestableTableValuedFunction(); _function.Create(GetCleanedServer(FAnsi.DatabaseType.MicrosoftSQLServer), repo); }
public void CreateFunction() { _function.Create(DiscoveredDatabaseICanCreateRandomTablesIn, CatalogueRepository); }
private void CreateFunction(ICatalogueRepository repo) { _function = new TestableTableValuedFunction(); _function.Create(DiscoveredDatabaseICanCreateRandomTablesIn, repo); }