public AccountManager(IKeyValueStorage storage, CommandBuilder commandBuilder, IUserIdProvider userIdProvider, TransportManager transportManager) { _storage = storage; _commandBuilder = commandBuilder; _userIdProvider = userIdProvider; _transportManager = transportManager; Number = _storage.GetValue(NumberKey, string.Empty); UserId = _storage.GetValue(UserIdKey, string.Empty); }
private IEnumerable <string> ReadFlightsOnce() { return(keyValueStorage.GetValue(pathToSettings, new string[0])); }
public ValueModel GetValue(KeyModel key) => _storage.GetValue(key);
private string GetValue(string key) { return(storage.GetValue(MakeKey(key))); }