Esempio n. 1
0
        private void ThenPlayerHas(Currency currency, int amount)
        {
            var currencies = _playerDataRepository.GetWallet().Wait();

            Assert.IsTrue(currencies.Any(x => x.CurrencyId == CURRENCY_ID && x.Amount == amount));
        }
Esempio n. 2
0
        public IObservable <PlayerWallet> Get()
        {
            var currencies = _playerDataRepository.GetWallet().Wait();

            return(Observable.Return(_wallet ?? (_wallet = MapWallet(currencies))));
        }