public void Init() { lastUseSdkCacheValue = AWSConfigs.UseSdkCache; AWSConfigs.UseSdkCache = true; SdkCache.Clear(); client = TestBase.CreateClient <AmazonDynamoDBClient>(); }
public void Init() { lastUseSdkCacheValue = AWSConfigs.UseSdkCache; AWSConfigs.UseSdkCache = true; SdkCache.Clear(); testTableName = UtilityMethods.GenerateName("CacheTest"); CreateTable(testTableName, true); }
public void Init() { lastUseSdkCacheValue = AWSConfigs.UseSdkCache; AWSConfigs.UseSdkCache = true; SdkCache.Clear(); client = TestBase.CreateClient <AmazonDynamoDBClient>(); testTableName = UtilityMethods.GenerateName("CacheTest"); CreateTable(testTableName, true); }
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(); }
/// <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); }
public void Init() { lastUseSdkCacheValue = AWSConfigs.UseSdkCache; AWSConfigs.UseSdkCache = true; SdkCache.Clear(); }