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

Provides a fake http header dictionary. More...

Inheritance diagram for PeanutButter.TestUtils.AspNetCore.Fakes.FakeHeaderDictionary:
PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap PeanutButter.TestUtils.AspNetCore.Fakes.IFake PeanutButter.TestUtils.AspNetCore.Fakes.ICanBeIndexedBy< in T >

Public Member Functions

 FakeHeaderDictionary (IDictionary< string, StringValues > store)
 FakeHeaderDictionary ()
Public Member Functions inherited from PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap
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.

Properties

long? ContentLength [get, set]
Properties inherited from PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap
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.
Properties inherited from PeanutButter.TestUtils.AspNetCore.Fakes.ICanBeIndexedBy< in T >
StringValues this[T key] [get, set]
 Indexes into the store.

Additional Inherited Members

Public Attributes inherited from PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap
ChangedDelegate OnChanged
 Event raised when this collection changes.

Detailed Description

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