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

            var response = SelfHostHarness.Endpoints.PostAsForm(request);

            response.Cookies[request.Name].Value.ShouldEqual(request.Value);
        }
Exemple #2
0
 public void post_write_cookie(WriteCookieRequest request)
 {
     _writer.AppendCookie(new Core.Http.Cookies.Cookie(request.Name, request.Value));
 }
 public void post_write_cookie(WriteCookieRequest request)
 {
     _writer.AppendCookie(new HttpCookie(request.Name, request.Value));
 }
        public void writes_basic_cookies()
        {
            var request = new WriteCookieRequest
                          {
                              Name = "Test",
                              Value = Guid.NewGuid().ToString()
                          };

            var response = SelfHostHarness.Endpoints.PostAsForm(request);
            response.Cookies[request.Name].Value.ShouldEqual(request.Value);
        }