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

Provides a fake cookie collection. More...

Inheritance diagram for PeanutButter.TestUtils.AspNetCore.Fakes.FakeRequestCookieCollection:
PeanutButter.TestUtils.AspNetCore.Fakes.StringMap PeanutButter.TestUtils.AspNetCore.Fakes.IFake

Public Member Functions

override IEnumerator< KeyValuePair< string, string > > GetEnumerator ()
Public Member Functions inherited from PeanutButter.TestUtils.AspNetCore.Fakes.StringMap
void Clear ()
 Clears the store.
bool ContainsKey (string key)
 Returns true if the key is stored.
bool TryGetValue (string key, out string value)
 Attempts to get the value associated with the provided key.

Protected Member Functions

override string Retrieve (string key)
 Before the value is retrieved, ensure we're in sync with any associated HttpContext's request.
override void Store (string key, string value)
 After storing, ensure that any associated http context's request headers reflect the same truth.

Properties

HttpRequest HttpRequest [get, set]
 The associated HttpRequest.
Properties inherited from PeanutButter.TestUtils.AspNetCore.Fakes.StringMap
int Count [get]
 Returns the count of the store.
ICollection< string > Keys [get]
 Returns all keys in the store.
string this[string key] [get, set]
 Indexes into the store.

Detailed Description

Provides a fake cookie collection.

Member Function Documentation

◆ GetEnumerator()

override IEnumerator< KeyValuePair< string, string > > PeanutButter.TestUtils.AspNetCore.Fakes.FakeRequestCookieCollection.GetEnumerator ( )
virtual

◆ Retrieve()

override string PeanutButter.TestUtils.AspNetCore.Fakes.FakeRequestCookieCollection.Retrieve ( string key)
protectedvirtual

Before the value is retrieved, ensure we're in sync with any associated HttpContext's request.

Parameters
key

Reimplemented from PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.

◆ Store()

override void PeanutButter.TestUtils.AspNetCore.Fakes.FakeRequestCookieCollection.Store ( string key,
string value )
protectedvirtual

After storing, ensure that any associated http context's request headers reflect the same truth.

Parameters
key
value

Reimplemented from PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.


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