-
Notifications
You must be signed in to change notification settings - Fork 476
Expand file tree
/
Copy pathReportingAppXmlConfiguration.cs
More file actions
32 lines (26 loc) · 1.05 KB
/
ReportingAppXmlConfiguration.cs
File metadata and controls
32 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using TestStack.White.Bricks;
using TestStack.White.Configuration;
namespace TestStack.White.Reporting.Configuration
{
public class ReportingAppXmlConfiguration : AssemblyConfiguration, ReportingConfiguration
{
private static ReportingConfiguration instance;
private static readonly Dictionary<string, object> DefaultValues = new Dictionary<string, object>();
static ReportingAppXmlConfiguration()
{
DefaultValues.Add("PublishTestReports", true);
}
private ReportingAppXmlConfiguration() : base("White", "Reporting", DefaultValues,
CoreAppXmlConfiguration.Instance.LoggerFactory.Create(typeof(ReportingAppXmlConfiguration))) {}
public static ReportingConfiguration Instance
{
get { return instance ?? (instance = new ReportingAppXmlConfiguration()); }
}
public virtual bool PublishTestReports
{
get { return Convert.ToBoolean(UsedValues["PublishTestReports"]); }
}
}
}