Esempio n. 1
0
 bool ILevelUpFarmUseCase.LevelUp()
 {
     if (!_moneyDecreasable.TryDecrease(_farmInfo.CurrentInfo.LevelUpCost))
     {
         return(false);
     }
     _farmLevelUpdatable.LevelUp(_farmRepository.GetNextFarmInfo(_farmInfo.CurrentInfo));
     return(true);
 }