Пример #1
0
        public void Init()
        {
            lastUseSdkCacheValue   = AWSConfigs.UseSdkCache;
            AWSConfigs.UseSdkCache = true;
            SdkCache.Clear();

            client = TestBase.CreateClient <AmazonDynamoDBClient>();
        }
Пример #2
0
        public void Init()
        {
            lastUseSdkCacheValue   = AWSConfigs.UseSdkCache;
            AWSConfigs.UseSdkCache = true;
            SdkCache.Clear();

            testTableName = UtilityMethods.GenerateName("CacheTest");
            CreateTable(testTableName, true);
        }
Пример #3
0
        public void Init()
        {
            lastUseSdkCacheValue   = AWSConfigs.UseSdkCache;
            AWSConfigs.UseSdkCache = true;
            SdkCache.Clear();

            client = TestBase.CreateClient <AmazonDynamoDBClient>();

            testTableName = UtilityMethods.GenerateName("CacheTest");
            CreateTable(testTableName, true);
        }
Пример #4
0
        public void Cleanup()
        {
            var tableExists = true;

            //var status = AWSSDK_DotNet.IntegrationTests.Tests.DynamoDB.DynamoDBTests.GetStatus(tableName);
            //tableExists = (status != null);

            var allTables = AWSSDK_DotNet.IntegrationTests.Tests.DynamoDB.DynamoDBTests.Client.ListTables().TableNames;

            tableExists = allTables.Contains(tableName);

            if (tableExists)
            {
                DeleteTable();
            }

            AWSConfigs.UseSdkCache = lastUseSdkCacheValue;
            SdkCache.Clear();
        }
Пример #5
0
 /// <summary>
 /// Clears current table cache. Next time a Table is created, its information
 /// will be loaded from DynamoDB.
 /// </summary>
 public static void ClearTableCache()
 {
     SdkCache.Clear(TableInfoCacheIdentifier);
 }
Пример #6
0
 public void Init()
 {
     lastUseSdkCacheValue   = AWSConfigs.UseSdkCache;
     AWSConfigs.UseSdkCache = true;
     SdkCache.Clear();
 }