예제 #1
0
        public void TestErrorSearchAccount()
        {
            QueryDB queryDB = new QueryDB();
            Account account = new Account();

            account = queryDB.SearchAccount("*****@*****.**");
            Assert.AreEqual("*****@*****.**", account.email);
        }
        /// <summary>
        /// Search if the account is registered in the database
        /// </summary>
        /// <param name="email">Player's email to search.</param>
        public void SearchAccount(string email)
        {
            QueryDB        consult        = new QueryDB();
            Account        account        = consult.SearchAccount(email);
            ServiceAccount serviceAccount = new ServiceAccount
            {
                IdAccount       = account.idAccount,
                NickName        = account.nickName,
                Email           = account.email,
                PasswordAccount = account.passwordAccount
            };

            OperationContext.Current.GetCallbackChannel <IAccountCallback>().AccountResponseAccount(serviceAccount);
        }