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); }
public void post_write_cookie(WriteCookieRequest request) { _writer.AppendCookie(new HttpCookie(request.Name, request.Value)); }