public void AcceptReturnCorrectResponse( IBasketVisitor expected , IBasketVisitor visitorStub , Discount sut ) { A.CallTo(() => visitorStub.Visit(sut)).Returns(expected); var actual = sut.Accept(visitorStub); Assert.Same(expected, actual); }
public IBasketVisitor Accept(IBasketVisitor visitor) { return(visitor.Visit(this)); }