public AzureCosmosTableApiRepositorySpecSetup()
        {
            var config   = new ConfigurationBuilder().AddJsonFile(@"appsettings.json").Build();
            var settings = new NetCoreAppSettings(config);

            Repository = AzureCosmosTableApiRepository.FromSettings(settings);
            AzureCosmosStorageBase.InitializeAllTests(null);
        }
Ejemplo n.º 2
0
        public AzureCosmosSqlApiRepositorySpecSetup()
        {
            var config   = new ConfigurationBuilder().AddJsonFile(@"appsettings.json").Build();
            var settings = new NetCoreAppSettings(config);

            Repository = AzureCosmosSqlApiRepository.FromSettings(NullRecorder.Instance, settings, "TestDatabase");
            AzureCosmosStorageBase.InitializeAllTests(null);
        }
Ejemplo n.º 3
0
        public static void InitializeAllTests(TestContext context)
        {
            InitializeAllTests();
            var config   = new ConfigurationBuilder().AddJsonFile(@"appsettings.json").Build();
            var settings = new NetCoreAppSettings(config);

            repository = AzureCosmosTableApiRepository.FromAppSettings(settings);
            AzureCosmosStorageBase.InitializeAllTests(context, "/EnableTableEndpoint");
        }
Ejemplo n.º 4
0
        public static void InitializeAllTests(TestContext context)
        {
            InitializeAllTests();
            var config   = new ConfigurationBuilder().AddJsonFile(@"appsettings.json").Build();
            var settings = new NetCoreAppSettings(config);

            repository = AzureCosmosSqlApiRepository.FromAppSettings(settings, "TestDatabase");
            AzureCosmosStorageBase.InitializeAllTests(context, null);
        }
Ejemplo n.º 5
0
 public static void CleanupAllTests()
 {
     AzureCosmosStorageBase.CleanupAllTests();
 }
 public void Dispose()
 {
     AzureCosmosStorageBase.CleanupAllTests();
 }