Beispiel #1
0
        public void ChangeCoinCount()
        {
            Init();

            VengineMachine.ChangeCoinCount(Coin1, 20);

            Assert.AreEqual(20, Coin1.Count);
        }
        public void ChangeCoinCount(Guid id, int count)
        {
            CoinEntity coinEntity = _coinRepository.Get(id);

            _printer.CoinInfo(coinEntity);

            _vengineMachine.ChangeCoinCount(coinEntity, count);

            _logger.Info(" before _db.SaveChanges()...");
            _drinkRepository.SaveChanges();
        }