3 instantiations of UsageData
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\UsageData.cs (1)
43
public static UsageData Parse(XElement xml) => new
UsageData
src\UsageReport\WritePackageUsageData.cs (1)
244
var data = new
UsageData
Microsoft.DotNet.SourceBuild.Tasks.Tests (1)
ValidateUsageAgainstBaselineTests.cs (1)
26
public UsageData SimpleUsageData(params string[] ids) => new
UsageData
23 references to UsageData
Microsoft.DotNet.SourceBuild.Tasks (14)
src\UsageReport\UsageData.cs (2)
19
nameof(
UsageData
),
43
public static
UsageData
Parse(XElement xml) => new UsageData
src\UsageReport\UsageValidationData.cs (1)
18
public
UsageData
ActualUsageData { get; set; }
src\UsageReport\ValidateUsageAgainstBaseline.cs (8)
52
var
used =
UsageData
.Parse(XElement.Parse(File.ReadAllText(DataFile)));
58
var
baseline =
UsageData
.Parse(XElement.Parse(baselineText));
71
public UsageValidationData GetUsageValidationData(
UsageData
baseline,
UsageData
used)
158
private static void ApplyBaselineIgnorePatterns(
UsageData
actual,
UsageData
baseline)
src\UsageReport\WritePackageUsageData.cs (1)
244
var
data = new UsageData
src\UsageReport\WriteUsageReports.cs (2)
63
UsageData
data =
UsageData
.Parse(XElement.Parse(File.ReadAllText(DataFile)));
Microsoft.DotNet.SourceBuild.Tasks.Tests (9)
ValidateUsageAgainstBaselineTests.cs (9)
26
public
UsageData
SimpleUsageData(params string[] ids) => new UsageData
37
var
baseline = SimpleUsageData("A/1.0.0");
38
var
used = SimpleUsageData("A/1.0.0", "B/1.0.0");
54
var
baseline = SimpleUsageData();
62
var
used = SimpleUsageData("A/1.0.0", "B/1.0.0", "Cat/1.2.3", "Car/1.4.5");
75
var
baseline = SimpleUsageData("A/1.0.0", "B/1.0.0");
81
var
used = SimpleUsageData("A/1.0.0", "B/1.0.0");
96
var
baseline = SimpleUsageData();
104
var
used = SimpleUsageData();