public when_getting_existent_item_from_cache() { Given(() => item_is_handled_and_key_generated("simplekey")); Given(() => item_exists_in_cache("simplekey", 1)); Given(() => value_deserialized_to(1, 2)); When(() => result = runtime.Get(item => item.KeyIs("nomatterwhatkey"))); }
public when_getting_non_existent_item_from_cache() { Given(() => item_is_handled_and_key_generated("simplekey")); Given(() => item_does_not_exists_in_cache("simplekey")); When(() => result = runtime.Get(item => item.KeyIs("1"))); }