Exemplo n.º 1
0
        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();
        }
Exemplo n.º 3
0
 public CommonTestSetup()
 {
     scriptRunner = ScriptRunner.Get(ConnectionName);
 }