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

            Repository = AzureCosmosTableApiRepository.FromSettings(settings);
            AzureCosmosStorageBase.InitializeAllTests(null);
        }
示例#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);
        }
示例#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");
        }
示例#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);
        }
示例#5
0
 public static void CleanupAllTests()
 {
     AzureCosmosStorageBase.CleanupAllTests();
 }
 public void Dispose()
 {
     AzureCosmosStorageBase.CleanupAllTests();
 }