Provides a fake http header dictionary.
More...
|
| FakeHeaderDictionary (IDictionary< string, StringValues > store) |
| FakeHeaderDictionary () |
delegate void | ChangedDelegate (object sender, StringValueMapChangedEventArgs args) |
| delegate raised when this collection changes
|
| StringValueMap (IDictionary< string, StringValues > store) |
| Create a string-value map around the provided store.
|
| StringValueMap () |
| Create a blank string-value map.
|
| StringValueMap (IEqualityComparer< string > equalityComparer) |
| Create a blank string-value map with the provided equality comparer for keys.
|
IEnumerator< KeyValuePair< string, StringValues > > | GetEnumerator () |
| Get an enumerator for the items in the store.
|
bool | ContainsKey (string key) |
| Returns true if the key is contained in the store.
|
bool | TryGetValue (string key, out StringValues value) |
| Attempts to get the value associated with the provided key.
|
void | Add (KeyValuePair< string, StringValues > item) |
| Adds a key-value-pair to the store.
|
void | Clear () |
| Clears the store.
|
bool | Contains (KeyValuePair< string, StringValues > item) |
| Tests if the key-value-pair is in the store.
|
void | CopyTo (KeyValuePair< string, StringValues >[] array, int arrayIndex) |
| Copies the contents to the provided array.
|
bool | Remove (KeyValuePair< string, StringValues > item) |
| Removes an item from the store.
|
void | Add (string key, StringValues value) |
| Adds an item to the store.
|
bool | Remove (string key) |
| Removes the item associated with the provided key.
|
|
long? | ContentLength [get, set] |
IDictionary< string, StringValues > | Store [get, set] |
| The store for the values.
|
ICollection< StringValues > | Values [get] |
| Returns all known values.
|
bool | IsReadOnly [get] |
| Returns read-only status of the store.
|
int | Count [get] |
| Returns the count of the store.
|
ICollection< string > | Keys [get] |
| Returns all keys in the store.
|
StringValues | this[string key] [get, set] |
| Indexes into the store.
|
StringValues | this[T key] [get, set] |
| Indexes into the store.
|
Provides a fake http header dictionary.
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.TestUtils.AspNetCore/Fakes/FakeHeaderDictionary.cs