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

Provides a collection of string maps. More...

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

Public Member Functions

void Clear ()
 Clears the store.
virtual IEnumerator< KeyValuePair< string, string > > GetEnumerator ()
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

virtual void Store (string key, string value)
 Stores the value in the store.
virtual string Retrieve (string key)
 retrieves the value from the store

Properties

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 collection of string maps.

Member Function Documentation

◆ ContainsKey()

bool PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.ContainsKey ( string key)

Returns true if the key is stored.

Parameters
key
Returns

◆ GetEnumerator()

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

◆ Retrieve()

virtual string PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.Retrieve ( string key)
protectedvirtual

retrieves the value from the store

  • override in an inherited class to do other funky things
Parameters
key

Reimplemented in PeanutButter.TestUtils.AspNetCore.Fakes.FakeRequestCookieCollection.

◆ Store()

virtual void PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.Store ( string key,
string value )
protectedvirtual

Stores the value in the store.

Parameters
key
value

Reimplemented in PeanutButter.TestUtils.AspNetCore.Fakes.FakeRequestCookieCollection.

◆ TryGetValue()

bool PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.TryGetValue ( string key,
out string value )

Attempts to get the value associated with the provided key.

Parameters
key
value
Returns

Property Documentation

◆ this[string key]

string PeanutButter.TestUtils.AspNetCore.Fakes.StringMap.this[string key]
getset

Indexes into the store.

Parameters
key

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