PeanutButter
|
Provides a fake query collection. More...
Public Member Functions | |
FakeQueryCollection () | |
FakeQueryCollection (string queryString) | |
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. |
Additional Inherited Members | |
Public Attributes inherited from PeanutButter.TestUtils.AspNetCore.Fakes.StringValueMap | |
ChangedDelegate | OnChanged |
Event raised when this collection changes. | |
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. |
Provides a fake query collection.