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();
        }
Exemplo n.º 2
0
 public string Request(int a, int b)
 {
     return("Rounded result is: " + (int)Math.Round(_adaptee.SpecificRequest(a, b)));
 }
Exemplo n.º 3
0
 public override void Request()
 {
     // Possibly do some other work
     //   and then call SpecificRequest
     adaptee.SpecificRequest();
 }
Exemplo n.º 4
0
 public void Request()
 {
     Adaptee.SpecificRequest();
 }
Exemplo n.º 5
0
 public int Request(string requestString)
 {
     return(_adaptee.SpecificRequest(requestString));
 }