public async Task Can_send_single_HelloAllAsync_request() { var client = CreateClientAsync(Config.AbsoluteBaseUri); var request = new HelloAllAsync { Name = "Foo" }; var response = await client.SendAsync(request); Assert.That(response.Result, Is.EqualTo("Hello, Foo!")); }
public object Any(HelloAllAsync request) { return(Task.FromResult(new HelloAllResponse { Result = "Hello, {0}!".Fmt(request.Name) })); }