public void can_bind_to_request_cookies() { var model = new CookieModel{ Color = "Green", Direction = "South" }; Harness.Endpoints.GetByInput(model, configure: SetupCookies).ReadAsText() .ShouldEqual(model.ToString()); }
public void can_bind_to_request_cookies() { var model = new CookieModel { Color = "Green", Direction = "South" }; TestHost.Scenario(_ => { _.Get.Input(model); _.Request.AppendCookie(new Cookie("Color", "Green")); _.Request.AppendCookie(new Cookie("Direction", "South")); _.ContentShouldBe(model.ToString()); }); }
public string get_cookie_data(CookieModel input) { return input.ToString(); }
public string get_cookie_data(CookieModel input) { return(input.ToString()); }