Exemplo n.º 1
0
        public static void ClassInitializeReport(TestContext testContext)
        {
            Account accountOne = new Account();

            accountOne.passwordAccount  = Encrypt("Mmol180515#");
            accountOne.email            = "*****@*****.**";
            accountOne.confirmationCode = 154863;
            accountOne.nickName         = "MariaFer13";

            Player playerOne = new Player();

            playerOne.lastName     = "Gomez";
            playerOne.nickName     = "MariaFer13";
            playerOne.namePlayer   = "Maria Fernanda";
            playerOne.statusPlayer = "Active";

            Account accountTwo = new Account();

            accountTwo.passwordAccount  = Encrypt("Mmol180515#");
            accountTwo.email            = "*****@*****.**";
            accountTwo.confirmationCode = 154863;
            accountTwo.nickName         = "MiroStart";

            Player playerTwo = new Player();

            playerTwo.lastName     = "Ortiz";
            playerTwo.nickName     = "MiroStart";
            playerTwo.namePlayer   = "Martha";
            playerTwo.statusPlayer = "Active";

            QueryDB queryDB = new QueryDB();

            queryDB.RegisterPlayer(accountOne, playerOne);
            queryDB.RegisterPlayer(accountTwo, playerTwo);
        }
Exemplo n.º 2
0
        public void TestErrorRegisterPlayer()
        {
            Account account = new Account();

            account.passwordAccount  = Encrypt("Mmol180515#");
            account.confirmationCode = 154863;
            account.nickName         = "Maria123";

            Player player = new Player();

            player.lastName     = "Gomez";
            player.nickName     = "Maria123";
            player.statusPlayer = "Active";

            QueryDB queryDB = new QueryDB();
            bool    isRegisterPlayer;

            isRegisterPlayer = queryDB.RegisterPlayer(account, player);
            Thread.Sleep(2000);
            Assert.IsTrue(isRegisterPlayer);
        }
Exemplo n.º 3
0
        public void TestRegisterPlayer()
        {
            Account account = new Account();

            account.passwordAccount  = Encrypt("Mmol180515#");
            account.email            = "*****@*****.**";
            account.confirmationCode = 154863;
            account.nickName         = "Maria123";

            Player player = new Player();

            player.lastName     = "Gomez";
            player.nickName     = "Maria123";
            player.namePlayer   = "Maria Fernanda";
            player.statusPlayer = "Active";

            QueryDB queryDB = new QueryDB();
            bool    isRegisterPlayer;

            isRegisterPlayer = queryDB.RegisterPlayer(account, player);
            Assert.IsTrue(isRegisterPlayer);
        }