예제 #1
0
파일: User.cs 프로젝트: shoferb/OYAOB
 public void UpdateHighestCashInGame(int cashToChck)
 {
     if (HighestCashGainInGame < cashToChck)
     {
         HighestCashGainInGame = cashToChck;
         userDataProxy.EditUserHighestCashGainInGame(id, cashToChck);
     }
 }
예제 #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);
        }