Ejemplo n.º 1
0
 public void nothing_happens()
 {
     var model = new PublicModel {Message = "Test"};
     var response = endpoints.GetByInput(model, configure: r => r.AllowAutoRedirect = false);
     
     response.StatusCode.ShouldEqual(HttpStatusCode.OK);
     response.ReadAsText().ShouldEqual(model.Message);
 }
Ejemplo n.º 2
0
        public void nothing_happens()
        {
            var model = new PublicModel {
                Message = "Test"
            };
            var response = endpoints.GetByInput(model, configure: r => r.AllowAutoRedirect = false);

            response.StatusCode.ShouldEqual(HttpStatusCode.OK);
            response.ReadAsText().ShouldEqual(model.Message);
        }
Ejemplo n.º 3
0
 public string get_say_Message(PublicModel request)
 {
     return request.Message;
 }
 public string get_say_Message(PublicModel request)
 {
     return(request.Message);
 }