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();
        }
 public void Setup()
 {
     scriptRunner.Run(@"..\..\TestScripts\CommonCreateScripts\06_insert_test_data.sql");
 }
Exemplo n.º 4
0
 public void Setup()
 {
     scriptRunner.Run(@"..\..\TestScripts\CommonCreateScripts\06_insert_test_data.sql");
     DataAccess = new DataAccess(ConfigurationManager.ConnectionStrings[ConnectionName].ConnectionString);
     DataAccess.ParameterFactory = ParameterFactory;
 }