public void DrinkChangeCost() { Init(); DrinkEntity drink1 = DrinkEntitiesList[0]; VengineMachine.ChangeCost(drink1, 50); Assert.AreEqual(50, drink1.CostPrice); }
public void ChangeDrinkCost(Guid id, int cost) { DrinkEntity drinkEntity = _drinkRepository.Get(id); _printer.DrinkInfo(drinkEntity); _vengineMachine.ChangeCost(drinkEntity, cost); _logger.Info(" before _db.SaveChanges()..."); _drinkRepository.SaveChanges(); }