public void UpdateHighestCashInGame(int cashToChck) { if (HighestCashGainInGame < cashToChck) { HighestCashGainInGame = cashToChck; userDataProxy.EditUserHighestCashGainInGame(id, cashToChck); } }
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); }