Exemple #1
0
 private void DataProviderUnitTest(IEnumerable <int> nodes, IEnumerable <int> versions, Action <IEnumerable <int>, IEnumerable <int> > cleanup, Action callback)
 {
     try
     {
         var builder = Platform.CreateRepositoryBuilder();
         if (Providers.Instance.BlobStorage == null)
         {
             Providers.Instance.InitializeBlobProviders();
         }
         TestInitializer?.Invoke(builder);
         callback();
     }
     finally
     {
         cleanup(nodes, versions);
     }
 }
 private void DataProviderUnitTest(IEnumerable <int> nodes, IEnumerable <int> versions, Action <IEnumerable <int>, IEnumerable <int> > cleanup, Action callback)
 {
     try
     {
         Platform.AppConfig = GetConfiguration();
         var builder = Platform.CreateRepositoryBuilder();
         if (Providers.Instance.BlobStorage == null)
         {
             Providers.Instance.InitializeBlobProviders(
                 new ConnectionStringOptions {
                 Repository = Platform.AppConfig.GetConnectionString("SnCrMsSql")
             });
         }
         TestInitializer?.Invoke(builder);
         callback();
     }
     finally
     {
         cleanup(nodes, versions);
     }
 }