C# Class PerpetualEngine.Storage.MockedSimpleStorage

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

Méthodes publiques

Свойство Type Description
database string>.Dictionary

Méthodes publiques

Méthode 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 méthode

Delete the specified key.
public Delete ( string key ) : void
key string
Résultat void

Get() public méthode

Retrieves value with given key.
public Get ( string key ) : string
key string
Résultat string

MockedSimpleStorage() public méthode

public MockedSimpleStorage ( string groupName ) : System
groupName string
Résultat System

Put() public méthode

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
Résultat void

Property Details

database public_oe static_oe property

public static Dictionary database
Résultat string>.Dictionary