-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathAttributeAssemblyTestHelper.cs
More file actions
126 lines (103 loc) · 5.9 KB
/
Copy pathAttributeAssemblyTestHelper.cs
File metadata and controls
126 lines (103 loc) · 5.9 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
using System.Linq;
using ArchUnitNET.Domain;
using ArchUnitNET.Domain.Extensions;
using ArchUnitNET.Loader;
using AttributeNamespace;
namespace ArchUnitNETTests.AssemblyTestHelper;
public class AttributeAssemblyTestHelpers : AssemblyTestHelper
{
public sealed override Architecture Architecture =>
StaticTestArchitectures.AttributeArchitecture;
public Attribute Attribute1;
public System.Type Attribute1SystemType = typeof(Attribute1);
public Attribute Attribute2;
public System.Type Attribute2SystemType = typeof(Attribute2);
public Attribute Attribute3;
public System.Type Attribute3SystemType = typeof(Attribute3);
public Attribute OnceUsedAttribute;
public System.Type OnceUsedAttributeSystemType = typeof(OnceUsedAttribute);
public Attribute UnusedAttribute;
public System.Type UnusedAttributeSystemType = typeof(UnusedAttribute);
public Class ClassWithoutAttributes;
public System.Type ClassWithoutAttributesSystemType = typeof(ClassWithoutAttributes);
public Class ClassWithSingleAttribute;
public System.Type ClassWithSingleAttributeSystemType = typeof(ClassWithSingleAttribute);
public Class ClassWithSingleUniquelyUsedAttribute;
public System.Type ClassWithSingleUniquelyUsedAttributeSystemType =
typeof(ClassWithSingleUniquelyUsedAttribute);
public Class ClassWithTwoAttributes;
public System.Type ClassWithTwoAttributesSystemType = typeof(ClassWithTwoAttributes);
public Class ClassWithThreeAttributes;
public System.Type ClassWithThreeAttributesSystemType = typeof(ClassWithThreeAttributes);
public readonly string UnusedAttributeStringValue = "NotTheValueOfAnyAttribute";
public readonly int UnusedAttributeIntValue = 42;
public readonly Class UnusedTypeArgument;
public readonly System.Type UnusedTypeArgumentSystemType = typeof(UnusedTypeArgument);
public readonly object Attribute1StringArgument = "Argument1";
public readonly object Attribute1IntegerArgument = 1;
public readonly object Attribute1TypeArgument;
public readonly object Attribute1TypeArgumentSystemType = typeof(TypeArgument1);
public readonly object Attribute2StringArgument = "Argument2";
public readonly object Attribute2IntegerArgument = 2;
public readonly object Attribute2TypeArgument;
public readonly object Attribute2TypeArgumentSystemType = typeof(TypeArgument2);
public readonly object Attribute3StringArgument = "Argument3";
public readonly object Attribute3IntegerArgument = 3;
public readonly object Attribute3TypeArgument;
public readonly object Attribute3TypeArgumentSystemType = typeof(TypeArgument3);
public Class ClassWithSingleAttributeWithArguments;
public System.Type ClassWithSingleAttributeWithArgumentsSystemType =
typeof(ClassWithSingleAttributeWithArguments);
public Class ClassWithTwoAttributesWithArguments;
public System.Type ClassWithTwoAttributesWithArgumentsSystemType =
typeof(ClassWithTwoAttributesWithArguments);
public Class ClassWithThreeAttributesWithArguments;
public System.Type ClassWithThreeAttributesWithArgumentsSystemType =
typeof(ClassWithThreeAttributesWithArguments);
public Class ClassWithSingleAttributeWithNamedArguments;
public System.Type ClassWithSingleAttributeWithNamedArgumentsSystemType =
typeof(ClassWithSingleAttributeWithNamedArguments);
public Class ClassWithTwoAttributesWithNamedArguments;
public System.Type ClassWithTwoAttributesWithNamedArgumentsSystemType =
typeof(ClassWithTwoAttributesWithNamedArguments);
public Class ClassWithThreeAttributesWithNamedArguments;
public System.Type ClassWithThreeAttributesWithNamedArgumentsSystemType =
typeof(ClassWithThreeAttributesWithNamedArguments);
public AttributeAssemblyTestHelpers()
{
Attribute1 = Architecture.GetAttributeOfType(typeof(Attribute1));
Attribute2 = Architecture.GetAttributeOfType(typeof(Attribute2));
Attribute3 = Architecture.GetAttributeOfType(typeof(Attribute3));
OnceUsedAttribute = Architecture.GetAttributeOfType(typeof(OnceUsedAttribute));
UnusedAttribute = Architecture.GetAttributeOfType(typeof(UnusedAttribute));
ClassWithoutAttributes = Architecture.GetClassOfType(typeof(ClassWithoutAttributes));
ClassWithSingleAttribute = Architecture.GetClassOfType(typeof(ClassWithSingleAttribute));
ClassWithSingleUniquelyUsedAttribute = Architecture.GetClassOfType(
typeof(ClassWithSingleUniquelyUsedAttribute)
);
ClassWithTwoAttributes = Architecture.GetClassOfType(typeof(ClassWithTwoAttributes));
ClassWithThreeAttributes = Architecture.GetClassOfType(typeof(ClassWithThreeAttributes));
UnusedTypeArgument = Architecture.GetClassOfType(typeof(UnusedTypeArgument));
Attribute1TypeArgument = Architecture.GetClassOfType(typeof(TypeArgument1));
Attribute2TypeArgument = Architecture.GetClassOfType(typeof(TypeArgument2));
Attribute3TypeArgument = Architecture.GetClassOfType(typeof(TypeArgument3));
ClassWithSingleAttributeWithArguments = Architecture.GetClassOfType(
typeof(ClassWithSingleAttributeWithArguments)
);
ClassWithTwoAttributesWithArguments = Architecture.GetClassOfType(
typeof(ClassWithTwoAttributesWithArguments)
);
ClassWithThreeAttributesWithArguments = Architecture.GetClassOfType(
typeof(ClassWithThreeAttributesWithArguments)
);
ClassWithSingleAttributeWithNamedArguments = Architecture.GetClassOfType(
typeof(ClassWithSingleAttributeWithNamedArguments)
);
ClassWithTwoAttributesWithNamedArguments = Architecture.GetClassOfType(
typeof(ClassWithTwoAttributesWithNamedArguments)
);
ClassWithThreeAttributesWithNamedArguments = Architecture.GetClassOfType(
typeof(ClassWithThreeAttributesWithNamedArguments)
);
}
}