|
PeanutButter
|
Provides a fake cookie collection. More...
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. | |
Provides a fake cookie collection.
|
virtual |
Reimplemented from PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.
|
protectedvirtual |
Before the value is retrieved, ensure we're in sync with any associated HttpContext's request.
| key |
Reimplemented from PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.
|
protectedvirtual |
After storing, ensure that any associated http context's request headers reflect the same truth.
| key | |
| value |
Reimplemented from PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.