Exemplo n.º 1
0
        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
                    });
                }
            }
        }
Exemplo n.º 2
0
        public void Cleanup()
        {
            if (poolid != null)
            {
                DeleteIdentityPool(poolid);
            }
            CleanupCreatedRoles();

#if INCLUDE_FACEBOOK_TESTS
            if (facebookUser != null)
            {
                FacebookUtilities.DeleteFacebookUser(facebookUser);
            }
#endif
        }
Exemplo n.º 3
0
        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();
        }