public void PrepareDrink_Call_DrinkPreparator_Prepare() { string ignored; _acuCafe.OrderDrink(A.Dummy <string>(), A.Dummy <List <string> >()); A.CallTo(() => _drinkPreparatorFake.Prepare(A <string> .Ignored, A <List <string> > .Ignored, out ignored)).MustHaveHappened(); }
public virtual Drink OrderDrink(string drinkName, IList <string> selectedTopicNames) { Drink drink; try { string preprationResult; drink = _drinkPreparator.Prepare(drinkName, selectedTopicNames, out preprationResult); InformBarista(preprationResult); } catch (Exception ex) { InformBarista(ex.Message); throw; } return(drink); }