C# Class PerpetualEngine.Storage.MockedSimpleStorage

Does not persistent right now... only used for unit tests
Inheritance: SimpleStorage
Exibir arquivo Open project: perpetual-mobile/PerpetualEngine

Public Properties

Property Type Description
database string>.Dictionary

Public Methods

Method Description
Delete ( string key ) : void

Delete the specified key.

Get ( string key ) : string

Retrieves value with given key.

MockedSimpleStorage ( string groupName ) : System
Put ( string key, string value ) : void

Persists a value with given key.

Method Details

Delete() public method

Delete the specified key.
public Delete ( string key ) : void
key string
return void

Get() public method

Retrieves value with given key.
public Get ( string key ) : string
key string
return string

MockedSimpleStorage() public method

public MockedSimpleStorage ( string groupName ) : System
groupName string
return System

Put() public method

Persists a value with given key.
public Put ( string key, string value ) : void
key string
value string if value is null, the key will be deleted
return void

Property Details

database public_oe static_oe property

public static Dictionary database
return string>.Dictionary