public void Cleanup() { CognitoIdentity.CleanupIdentityPools(); CleanupCreatedRoles(); if (facebookUser != null) { FacebookUtilities.DeleteFacebookUser(facebookUser); } using (var sns = new AmazonSimpleNotificationServiceClient()) { foreach (var topicArn in topicArns) { sns.DeleteTopic(topicArn); } topicArns.Clear(); if (platformApplicationArn != null) { sns.DeletePlatformApplication(new DeletePlatformApplicationRequest { PlatformApplicationArn = platformApplicationArn }); } } }
public void Cleanup() { if (poolid != null) { DeleteIdentityPool(poolid); } CleanupCreatedRoles(); #if INCLUDE_FACEBOOK_TESTS if (facebookUser != null) { FacebookUtilities.DeleteFacebookUser(facebookUser); } #endif }
public void Cleanup() { if (poolid != null) { DeleteIdentityPool(poolid); } CleanupCreatedRoles(); #if INCLUDE_FACEBOOK_TESTS if (facebookUser != null) { FacebookUtilities.DeleteFacebookUser(facebookUser); } #endif //drop all the tables from the db #if !BCL35 var filePath = InternalSDKUtils.DetermineAppLocalStoragePath(DB_FILE_NAME); if (File.Exists(filePath)) { using (SQLiteConnection connection = new SQLiteConnection(string.Format("Data Source={0};Version=3;", filePath))) { connection.Open(); SQLiteCommand cmd = connection.CreateCommand(); cmd.CommandText = "DROP TABLE IF EXISTS records"; cmd.ExecuteNonQuery(); cmd = connection.CreateCommand(); cmd.CommandText = "DROP TABLE IF EXISTS datasets"; cmd.ExecuteNonQuery(); cmd = connection.CreateCommand(); cmd.CommandText = "DROP TABLE IF EXISTS kvstore"; cmd.ExecuteNonQuery(); } } #endif BaseClean(); }