コード例 #1
0
        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!"));
        }
コード例 #2
0
ファイル: ReplyAllTests.cs プロジェクト: cody82/DownSite
 public object Any(HelloAllAsync request)
 {
     return(Task.FromResult(new HelloAllResponse {
         Result = "Hello, {0}!".Fmt(request.Name)
     }));
 }