Exemplo n.º 1
0
 public void Dispose()
 {
     foreach (var datasource in DataSourceExtractor.DataSources)
     {
         DbSetupUtility.DropDb((dynamic)Sp.GetRequiredService(typeof(IDbContextFactory <>).MakeGenericType(datasource)));
     }
 }
Exemplo n.º 2
0
 public UnityAddonEfTest(UnityAddonTestFixture testFixture, bool isDefered) : base(testFixture, isDefered)
 {
     foreach (var datasource in DataSourceExtractor.DataSources)
     {
         DbSetupUtility.CreateDb((dynamic)Sp.GetRequiredService(typeof(IDbContextFactory <>).MakeGenericType(datasource)));
     }
 }