public IdentityProvider(ServerConfiguration config) { _hashCache = new ConcurrentDictionary<string, SonosIdentifier>(); _idGen = new ConvertPathsToSha1(); _hashCache.TryAdd("root", new SonosIdentifier { Id = "root", Path = config.MusicShare }); }
public IdentityProvider(ServerConfiguration config) { _hashCache = new ConcurrentDictionary <string, SonosIdentifier>(); _idGen = new ConvertPathsToSha1(); _hashCache.TryAdd("root", new SonosIdentifier { Id = "root", Path = config.MusicShare }); }
public void SetUp() { _uncompressedId = "\\\\some\\smb\\path"; _compressedId = new ConvertPathsToSha1().IdentifierFor(_uncompressedId); var backing = new Dictionary<string, SonosIdentifier> { {_uncompressedId, new SonosIdentifier {Id = _compressedId, Path = "\\\\some\\smb\\path"}} }; _config = new ServerConfiguration {MusicShare = "\\\\a\\\\b"}; _provider = new IdentityProvider(_config, backing); }