Exemplo n.º 1
0
 public void TearDown()
 {
     FbConnection.ClearAllPools();
     foreach (var item in _initalized)
     {
         var cs = FbTestsBase.BuildConnectionString(item.Item1, item.Item2);
         FbConnection.DropDatabase(cs);
     }
     _initalized.Clear();
 }
Exemplo n.º 2
0
    public static void SetUp(FbServerType serverType, bool compression)
    {
        var item = Tuple.Create(serverType, compression);

        if (!_initalized.Contains(item))
        {
            var cs = FbTestsBase.BuildConnectionString(serverType, compression);
            FbConnection.CreateDatabase(cs, PageSize, ForcedWrite, true);
            CreateTables(cs);
            CreateProcedures(cs);
            CreateTriggers(cs);
            _initalized.Add(item);
        }
    }