Exemplo n.º 1
0
 public void Returns_Correct_Data()
 {
     var loader = new SQLServer2005DatabaseLoader(new SQLServer2005DatabaseConnector(SqlServerHelper.ConnStringHelper));
     CreateDatabase("1Table3Columns - SQL Server.sql");
     var db = loader.LoadDatabase();
     Generic_Returns_Correct_Data(db, "TestDatabase", loader);
 }
Exemplo n.º 2
0
 public void Constructs_The_Corrent_Many2One_Relationshps()
 {
     var loader = new SQLServer2005DatabaseLoader(new SQLServer2005DatabaseConnector(SqlServerHelper.ConnStringHelper));
     CreateDatabase("2Tables1Relationship - SQL Server.sql");
     var db = loader.LoadDatabase();
     new DatabaseProcessor().CreateRelationships(db);
     Generic_Constructs_The_Corrent_Many2One_Relationshps(db);
 }
Exemplo n.º 3
0
 public void Constructs_The_Corrent_Relationshp_From_A_FK_To_Unique_Key()
 {
     var loader = new SQLServer2005DatabaseLoader(new SQLServer2005DatabaseConnector(SqlServerHelper.ConnStringHelper));
     CreateDatabase("ForeignKeyToUniqueKey - SQL Server.sql");
     var db = loader.LoadDatabase();
     new DatabaseProcessor().CreateRelationships(db);
     Generic_Relationship_Created_From_FK_To_UniqueKey(db);
 }
Exemplo n.º 4
0
 public void Constructs_The_Corrent_ForeignKey_From_A_FK_To_Unique_Key()
 {
     var loader = new SQLServer2005DatabaseLoader(new SQLServer2005DatabaseConnector(SqlServerHelper.ConnStringHelper));
     CreateDatabase("ForeignKeyToUniqueKey - SQL Server.sql");
     var db = loader.LoadDatabase();
     Generic_Loads_FK_Correctly_When_It_Refers_To_UniqueKey_In_DB(db);
 }