public IEnumerable <CharacterIndex> GetHashes(IHashes hashes, IEnumerable <CharacterIndex> characters) { foreach (var character in characters) { character.Hash = hashes.GetHash(character.Character); yield return(character); } }
public SaveCustomerHashes(IMapperProvider mapperProvider, IEncryptionProvider encryptionProvider, ICharacterHashService characterHashService, ICustomerHashService customerHashService, ApplicationSettings applicationSettings) : base(mapperProvider, encryptionProvider) { _characterHashService = characterHashService; _customerHashService = customerHashService; _hashes = applicationSettings.GetHashes(); }