56 references to new
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Logging\HttpLoggingServiceExtensionsTests.cs (3)
63
{ "one", new
DataClassification
("Taxonomy1", "Value1") },
68
{ "two", new
DataClassification
("Taxonomy2", "Value2") },
73
{ "three", new
DataClassification
("Taxonomy3", "Value3") },
Microsoft.Extensions.Compliance.Abstractions.Tests (15)
Classification\DataClassificationAttributeTests.cs (2)
16
: base(new
DataClassification
(TaxonomyName, Value))
26
Assert.True(attribute.Classification == new
DataClassification
(TaxonomyName, Value));
Classification\DataClassificationTests.cs (10)
16
var dc = new
DataClassification
(TaxonomyName, Value);
20
Assert.True(dc == new
DataClassification
(TaxonomyName, Value));
21
Assert.False(dc != new
DataClassification
(TaxonomyName, Value));
23
Assert.True(dc != new
DataClassification
(TaxonomyName + "x", Value));
24
Assert.False(dc == new
DataClassification
(TaxonomyName + "x", Value));
26
Assert.True(dc != new
DataClassification
(TaxonomyName, Value + 1));
27
Assert.False(dc == new
DataClassification
(TaxonomyName, Value + 1));
33
Assert.NotEqual(dc.GetHashCode(), new
DataClassification
(TaxonomyName + "X", Value).GetHashCode());
34
Assert.NotEqual(dc.GetHashCode(), new
DataClassification
(TaxonomyName, Value + 1).GetHashCode());
45
var dc = new
DataClassification
(TaxonomyName, Value);
Redaction\NullRedactorTest.cs (3)
50
var dc1 = new
DataClassification
("TAX", "1");
51
var dc2 = new
DataClassification
("TAX", "2");
52
var dc3 = new
DataClassification
("TAX", "4");
Microsoft.Extensions.Compliance.Redaction.Tests (18)
RedactionAcceptanceTests.cs (4)
16
var dc1 = new
DataClassification
("TAX", "1");
17
var dc2 = new
DataClassification
("TAX", "2");
42
var dc = new
DataClassification
("TAX", "1");
68
var dc = new
DataClassification
("TAX", "1");
RedactorProviderTests.cs (14)
26
var dc = new
DataClassification
("Foo", "0x2");
36
private static readonly DataClassification _dataClassification1 =
new
("TAX", "1");
37
private static readonly DataClassification _dataClassification2 =
new
("TAX", "2");
38
private static readonly DataClassification _dataClassification3 =
new
("TAX", "4");
65
var dc1 = new DataClassificationSet(new
DataClassification
("DummyTaxonomy", "Classification"));
66
var dc2 = new DataClassificationSet(new
DataClassification
("DummyTaxonomy", "Classification2"));
67
var dc3 = new DataClassificationSet(new
DataClassification
("DummyTaxonomy", "Classification3"));
68
var dc4 = new DataClassificationSet(new
DataClassification
("DummyTaxonomy", "Classification4"));
69
var dc5 = new DataClassificationSet(new
DataClassification
("DummyTaxonomy", "Classification5"));
70
var dc6 = new DataClassificationSet(new
DataClassification
("DummyTaxonomy", "Classification6"));
71
var dc7 = new DataClassificationSet(new
DataClassification
("DummyTaxonomy", "Classification7"));
72
var dc8 = new DataClassificationSet(new
DataClassification
("DummyTaxonomy", "Classification8"));
74
var dc9 = new
DataClassification
("DummyTaxonomy", "Classification9");
76
var dc1LogicalCopy = new DataClassificationSet(new[] { new
DataClassification
("DummyTaxonomy", "Classification") });
Microsoft.Extensions.Compliance.Testing (2)
FakeTaxonomy.cs (2)
21
public static DataClassification PrivateData =>
new
(TaxonomyName, nameof(PrivateData));
26
public static DataClassification PublicData =>
new
(TaxonomyName, nameof(PublicData));
Microsoft.Extensions.Compliance.Testing.Tests (18)
FakeRedactorProviderTests.cs (2)
16
var dc = new
DataClassification
("TAX", "1");
25
var dc = new
DataClassification
("TAX", "1");
FakeRedactorTests.cs (3)
79
new
DataClassification
("TAX", "1"),
80
new
DataClassification
("TAX", "2"),
81
new
DataClassification
("TAX", "3"),
RedactionFakesAcceptanceTests.cs (12)
17
var dc = new
DataClassification
("Foo", "0x1");
37
var dc = new
DataClassification
("TAX", "1");
56
var dc = new
DataClassification
("Foo", "0x1");
76
var dc = new
DataClassification
("TAX", "1");
95
var dc = new
DataClassification
("Foo", "0x1");
115
var dc = new
DataClassification
("TAX", "1");
135
var dc = new
DataClassification
("TAX", "1");
155
var dc = new
DataClassification
("TAX", "1");
175
var dc = new
DataClassification
("TAX", "1");
207
var dc = new
DataClassification
("TAX", "1");
229
var dc = new
DataClassification
("TAX", "1");
248
var dc = new
DataClassification
("TAX", "1");
RedactionFakesEventCollectorTests.cs (1)
54
var dc = new
DataClassification
("TAX", "1");