public async Task HandlesWithResponseTest()
 {
     var request = new RequestWithResponse();
     var handler = new RequestWithResponseHandler();
     var context = A.Fake <RequestHandlerContext <int> >();
     await handler.Handle(context, request);
 }
 public async Task ThrowsOnBadRequestWithResponseTest()
 {
     var request = new Request();
     var handler = new RequestWithResponseHandler();
     var context = A.Fake <RequestHandlerContext>();
     await Assert.ThrowsAsync <ArgumentException>(() =>
     {
         return(handler.Handle(context, request));
     });
 }