public GetUserTokenHandler(IJwtConfig config, IDummyAdminUser adminUser,
                            ILogger <GetRegistrationResponseByDeviceIdHandler> logger)
 {
     _config    = config;
     _adminUser = adminUser;
     _logger    = logger;
 }
 public static User SetRole(User user, IDummyAdminUser adminUser)
 {
     user.Role = adminUser.UserName.Equals(user.UserName, StringComparison.CurrentCultureIgnoreCase) &&
                 adminUser.Password.Equals(user.Password, StringComparison.CurrentCultureIgnoreCase)
                 ? adminUser.Role
                 : Constants.OtherUserRole;
     return(user);
 }