Example #1
0
        protected override void SpamAction(int index)
        {
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Restart();
            dataBase.AddAccount(new AccountCreationData(username + index, password, 5, contact + index));
            stopwatch.Stop();
            Logger.Log("Added account #" + index + " - duration: " + stopwatch.ElapsedMilliseconds + "ms");
        }
Example #2
0
        protected override void SpamAction(int index)
        {
            if (dataBase.AddAccount(new AccountCreationData(username, password, 5, contact)))
            {
                Logger.Log("added user account");
            }
            else
            {
                Logger.Log("failed to add user account");
            }

            if (dataBase.Validate(username, password, 5))
            {
                Logger.Log("verfied user account");
            }
            else
            {
                Logger.Log("failed to verify user account");
            }

            if (dataBase.Validate(username, wrongPassword, 5))
            {
                Logger.Log("verfied user account");
            }
            else
            {
                Logger.Log("failed to verify user account");
            }

            if (dataBase.EraseAccount(username))
            {
                Logger.Log("deleted user account");
            }
            else
            {
                Logger.Log("failed to delete user account");
            }
        }