Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using NUnit.Framework;
using RelevantCodes.ExtentReports;
namespace TatAutomationFramework.Common
{
/// <summary>
/// Creates a single instance of Extent Report
/// </summary>
public class ReportingManager
{
/// <summary>
/// Create new instance of Extent report
/// </summary>
private static readonly ExtentReports _instance = new ExtentReports(TestContext.CurrentContext.TestDirectory + "\\TestResults.html");
static ReportingManager() { }
private ReportingManager() { }
/// <summary>
/// Property to return the instance of the report.
/// </summary>
/// <value>
/// The instance.
/// </value>
public static ExtentReports Instance
{
get
{
return _instance;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.