19 lines
607 B
C#
19 lines
607 B
C#
|
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
|
||
|
}
|
||
|
}
|