public KeyDataStoreTests()
 {
     _fileBackedRepository = Substitute.For<IFileBackedRepository>();
     IDictionary<string, string> dictionary = new Dictionary<string, string>();
     _fileBackedRepository.Load()
         .Returns(dictionary);
     _keyDataStore = new KeyDataStore(_fileBackedRepository);
 }
示例#2
0
        public KeyDataStoreTests()
        {
            _fileBackedRepository = Substitute.For <IFileBackedRepository>();
            IDictionary <string, string> dictionary = new Dictionary <string, string>();

            _fileBackedRepository.Load()
            .Returns(dictionary);
            _keyDataStore = new KeyDataStore(_fileBackedRepository);
        }
示例#3
0
 void ILifecycleService.Initialize()
 {
     _dataStore = _fileBackedRepository.Load();
 }