public void Initalize() { ScriptRunner scriptRunner = ScriptRunner.Get(ConnectionName); scriptRunner.Run(@"..\..\TestScripts\CommonCreateScripts\01_create_login_and_user.sql"); scriptRunner.Run(@"..\..\TestScripts\CommonCreateScripts\02_create_tables.sql"); scriptRunner.Run(@"..\..\TestScripts\CommonCreateScripts\03_create_stored_procedures.sql"); scriptRunner.Run(@"..\..\TestScripts\CommonCreateScripts\04_create_views.sql"); scriptRunner.Run(@"..\..\TestScripts\CommonCreateScripts\05_create_test_schmea_and_objects.sql"); }
public void SetupFixtureWideObjects() { connectionStringMinPermissions = ConfigurationManager.ConnectionStrings["MinPermission"].ConnectionString; connectionStringAdditionalDb = ConfigurationManager.ConnectionStrings[SecondaryConnectionName].ConnectionString; scriptRunner = ScriptRunner.Get(PrimaryConnectionName); scriptRunner.CreateDb(SecondaryConnectionName); scriptRunner.Run(@"..\..\TestScripts\ExtraDB\01_Create_schema.sql"); ParameterFactory = new SqlParameterFactory(); }
public CommonTestSetup() { scriptRunner = ScriptRunner.Get(ConnectionName); }