public AzureCosmosTableApiRepositorySpecSetup() { var config = new ConfigurationBuilder().AddJsonFile(@"appsettings.json").Build(); var settings = new NetCoreAppSettings(config); Repository = AzureCosmosTableApiRepository.FromSettings(settings); AzureCosmosStorageBase.InitializeAllTests(null); }
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); }
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"); }
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); }
public static void CleanupAllTests() { AzureCosmosStorageBase.CleanupAllTests(); }
public void Dispose() { AzureCosmosStorageBase.CleanupAllTests(); }