public void call_specific_request_method_in_adaptee() { // arrange IAdaptee adaptee = A.Fake <IAdaptee>(); ITarget adapter = new Adapter(adaptee); // act client.CallRequest(adapter); // assert A.CallTo(() => adaptee.SpecificRequest()).MustHaveHappened(); }
public string Request(int a, int b) { return("Rounded result is: " + (int)Math.Round(_adaptee.SpecificRequest(a, b))); }
public override void Request() { // Possibly do some other work // and then call SpecificRequest adaptee.SpecificRequest(); }
public void Request() { Adaptee.SpecificRequest(); }
public int Request(string requestString) { return(_adaptee.SpecificRequest(requestString)); }