public void AddWillPipeMapCorrectly_DeclarativeStyle( [Frozen] Basket basket , [Frozen] Fake <IPizzaMap> mapMock , PizzaPresenter pizza , BasketPresenter sut ) { // Exercise system sut.Add(pizza); // Verify outcome A.CallTo(() => mapMock.FakedObject.Pipe(pizza, basket.Add)) .MustHaveHappened(Repeated.Exactly.Once); }
public void Add(PizzaPresenter presenter) { _map.Pipe(presenter, _basket.Add); }