public KeyDataStoreTests() { _fileBackedRepository = Substitute.For<IFileBackedRepository>(); IDictionary<string, string> dictionary = new Dictionary<string, string>(); _fileBackedRepository.Load() .Returns(dictionary); _keyDataStore = new KeyDataStore(_fileBackedRepository); }
public KeyDataStoreTests() { _fileBackedRepository = Substitute.For <IFileBackedRepository>(); IDictionary <string, string> dictionary = new Dictionary <string, string>(); _fileBackedRepository.Load() .Returns(dictionary); _keyDataStore = new KeyDataStore(_fileBackedRepository); }
void ILifecycleService.Initialize() { _dataStore = _fileBackedRepository.Load(); }