public string GeneratePassword(string domainName, string masterPassword, int length,
                                       HmacGenerator hmacGenerator, CharacterSpace characterSpace)
        {
            IHmacGenerator generator = hmacGeneratorResolver.ResolverHmacGenerator(hmacGenerator);
            string         space     = characterSpaceGenerator.GenerateCharacterSpace(characterSpace);

            byte[] hmac              = generator.GenerateHmacHash(domainName, masterPassword);
            string password          = hmacToArbitraryEncodingConverter.ConvertToArbitraryEncodedString(hmac, space);
            string truncatedPassword = passwordTruncator.Truncate(password, length);

            return(truncatedPassword);
        }
 public string TestGenerateCharacterSpace(CharacterSpace characterSpace)
 {
     return generator.GenerateCharacterSpace(characterSpace);
 }