private async Task <PasswordResetMailTemplate> PasswordResetTemplateFactory(PasswordResetTemplateBuilderContext context)
        {
            var template = new PasswordResetMailTemplate();

            template.TemporaryPassword = context.TemporaryPassword;
            await _userMailTemplateInitializer.Initialize(context.User, template);

            return(template);
        }
        public IPasswordResetTemplateBuilderContext CreatePasswordResetContext(UserSummary user, string temporaryPassword)
        {
            var context = new PasswordResetTemplateBuilderContext()
            {
                User = user,
                TemporaryPassword      = new HtmlString(temporaryPassword),
                DefaultTemplateFactory = PasswordResetTemplateFactory
            };

            return(context);
        }