FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ArchUnitNET/ExampleTest/ExampleArchUnitTestPuml.cs at main · TNG/ArchUnitNET · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
TNG
/
ArchUnitNET
Public
Notifications
You must be signed in to change notification settings
Fork
80
Star
1.4k
Code
Issues
21
Pull requests
10
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ArchUnitNET
/
ExampleTest
/
ExampleArchUnitTestPuml.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (26 loc) · 900 Bytes
Breadcrumbs
ArchUnitNET
/
ExampleTest
/
ExampleArchUnitTestPuml.cs
Copy path
File metadata and controls
29 lines (26 loc) · 900 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Text
;
using
ArchUnitNET
.
Domain
;
using
ArchUnitNET
.
Fluent
;
using
ArchUnitNET
.
Loader
;
using
ArchUnitNET
.
xUnit
;
using
ExampleTest
.
PlantUml
.
Addresses
;
using
Xunit
;
using
static
ArchUnitNET
.
Fluent
.
ArchRuleDefinition
;
namespace
ExampleTest
{
public
class
ExampleArchUnitTestPuml
{
private
static
readonly
Architecture
Architecture
=
new
ArchLoader
(
)
.
LoadNamespacesWithinAssembly
(
typeof
(
Address
)
.
Assembly
,
"ExampleTest.PlantUml"
)
.
Build
(
)
;
[
Fact
]
public
void
ClassesShouldAdhereToShoppingExampleConsideringOnlyDependenciesInDiagram
(
)
{
var
filename
=
"./Resources/shopping_example.puml"
;
IArchRule
adhereToPlantUmlDiagram
=
Types
(
)
.
Should
(
)
.
AdhereToPlantUmlDiagram
(
filename
)
;
adhereToPlantUmlDiagram
.
Check
(
Architecture
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL