// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Identity.UI.Services; namespace Identity.DefaultUI.WebSite { public class ContosoEmailSender : IEmailSender { public IList SentEmails { get; set; } = new List(); public Task SendEmailAsync(string email, string subject, string htmlMessage) { SentEmails.Add(new IdentityEmail(email, subject, htmlMessage)); return Task.CompletedTask; } } }