示例#1
0
        public void writes_basic_cookies()
        {
            var request = new WriteCookieRequest
                          {
                              Name = "Test1",
                              Value = Guid.NewGuid().ToString()
                          };

            var response = TestApplication.Endpoints.PostAsForm(request);
            response.Cookies[request.Name].Value.ShouldEqual(request.Value);
        }
示例#2
0
 public void post_write_cookie(WriteCookieRequest request)
 {
     _writer.AppendCookie(new HttpCookie(request.Name, request.Value));
 }
示例#3
0
 public void post_write_cookie(WriteCookieRequest request)
 {
     _writer.AppendCookie(new HttpCookie(request.Name, request.Value));
 }