public void DrinkChangeImage() { Init(); VengineMachine.ChangeImage(Drink1, "filename1"); Assert.AreEqual("filename1", Drink1.ImagePath); }
public void ChangeDrinkImage(Guid id, string path) { DrinkEntity drinkEntity = _drinkRepository.Get(id); _printer.DrinkInfo(drinkEntity); _vengineMachine.ChangeImage(drinkEntity, path); _logger.Info(" before _db.SaveChanges()..."); _drinkRepository.SaveChanges(); }