コード例 #1
0
 public MySpecialContinuation post_special(SpecialInput input)
 {
     return(new MySpecialContinuation
     {
         Name = input.Name
     });
 }
 public MySpecialContinuation post_special(SpecialInput input)
 {
     return new MySpecialContinuation
     {
         Name = input.Name
     };
 }
        public void get_output_from_custom_continuation()
        {
            var specialInput = new SpecialInput {Name = "somebody"};

            TestHost.Scenario(_ =>
            {
                _.Post.Json(specialInput);
                _.ContentShouldBe("{\"success\":false,\"refresh\":false,\"name\":\"somebody\"}");
                _.ContentTypeShouldBe(MimeType.Json);
            });
        }
コード例 #4
0
        public void get_output_from_custom_continuation()
        {
            var specialInput = new SpecialInput {
                Name = "somebody"
            };

            TestHost.Scenario(_ =>
            {
                _.Post.Json(specialInput);
                _.ContentShouldBe("{\"success\":false,\"refresh\":false,\"name\":\"somebody\"}");
                _.ContentTypeShouldBe(MimeType.Json);
            });
        }