Ejemplo n.º 1
0
 public void UpdateHighestCashInGame(int cashToChck)
 {
     if (HighestCashGainInGame < cashToChck)
     {
         HighestCashGainInGame = cashToChck;
         userDataProxy.EditUserHighestCashGainInGame(id, cashToChck);
     }
 }
Ejemplo n.º 2
0
        public void EditUserHighestCashGainInGameTest()
        {
            UserTable ut = CreateUser(1414552, "EditUserHighestCashGainInGameTest()-proxy");

            _userDataProxy.AddNewUser(ConvertToIUser(ut));
            _userDataProxy.EditUserHighestCashGainInGame(1414552, 50);
            IUser user = _userDataProxy.GetUserById(1414552);

            Assert.AreEqual(user.HighestCashGainInGame, 50);
            _userDataProxy.DeleteUserById(1414552);
        }