newsletter/Reporters/Dummy.cs
Adam R Grey 72d6e1e254 this is my favorite style, though always a pain
reflect derived types, then instantiate. No registration, just derive :)
2023-03-22 12:21:38 -04:00

19 lines
616 B
C#

using HtmlAgilityPack;
using System.Threading.Tasks;
namespace newsletter.Reporters
{
public class Dummy : Reporter
{
#pragma warning disable CS1998
public override async Task<Report> Report(Configuration.Reporter config)
{
return new Report()
{
ReportContent = HtmlNode.CreateNode($"<div>dummy node for testing purposes. Url: {config.Url}, Username: {config.Username}, Password: {config.Password}.</div>"),
TextSummary = "dummy text for testing purposes"
};
}
#pragma warning restore CS1998
}
}