public async Task <EchoResponse> ServiceMethod(EchoFormRequest request) { await LongRunningTask.Instance(); return(new EchoResponse { TokenEcho = request.Token }); }
public void ExpectRouteIsWiredUpAndResolvedCorrectly(string verb, RouteRegistrar registrar, EchoFormRequest request) { var browser = new Browser(with => with.Module(new EchoModule(registrar))); browser.SendFormRequest<EchoResponse>(verb, "/echo", request).TokenEcho.Should().Be(request.Token); }
public async Task<EchoResponse> ServiceMethod(EchoFormRequest request) { await LongRunningTask.Instance(); return new EchoResponse { TokenEcho = request.Token }; }