PeanutButter
Loading...
Searching...
No Matches
PeanutButter.TestUtils.AspNetCore.Fakes.FakeCookie Class Reference

Implements a fake cookie holder. More...

Inheritance diagram for PeanutButter.TestUtils.AspNetCore.Fakes.FakeCookie:
PeanutButter.TestUtils.AspNetCore.Fakes.IFake

Public Member Functions

 FakeCookie (string name, string value)
 Constructs a fake response cookie with the default options.
 FakeCookie (string name, string value, CookieOptions options)
 Constructs the cookie container.

Static Public Member Functions

static FakeCookie Parse (string rawCookie)
 Parse a raw set-cookie header.

Properties

string Name [get]
 The name of the cookie.
string Value [get]
 The value of the cookie.
CookieOptions Options [get]
 The options for the cookie.

Detailed Description

Implements a fake cookie holder.

Constructor & Destructor Documentation

◆ FakeCookie() [1/2]

PeanutButter.TestUtils.AspNetCore.Fakes.FakeCookie.FakeCookie ( string name,
string value )

Constructs a fake response cookie with the default options.

Parameters
name
value

◆ FakeCookie() [2/2]

PeanutButter.TestUtils.AspNetCore.Fakes.FakeCookie.FakeCookie ( string name,
string value,
CookieOptions options )

Constructs the cookie container.

Parameters
name
value
options

Member Function Documentation

◆ Parse()

FakeCookie PeanutButter.TestUtils.AspNetCore.Fakes.FakeCookie.Parse ( string rawCookie)
static

Parse a raw set-cookie header.

Parameters
rawCookie
Returns

The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.TestUtils.AspNetCore/Fakes/FakeCookie.cs