newsletter/Reporters/Dummy.cs

19 lines
607 B
C#
Raw Normal View History

2023-03-22 11:03:06 -04:00
using HtmlAgilityPack;
using System.Threading.Tasks;
namespace newsletter.Reporters
{
public class Dummy : Reporter
{
#pragma warning disable CS1998
public 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
}
}