Skip to content

Commit a64ec95

Browse files
committed
apply code review feedback
Signed-off-by: Marco Studer <marco.studer@bison-group.com>
1 parent 2172b80 commit a64ec95

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

ArchUnitNETTests/Domain/PlantUml/TestDiagram.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public static TestDiagram In(string path)
2222
return new TestDiagram(path);
2323
}
2424

25-
public ComponentCreator Component(string componentName)
25+
public ComponentBuilder Component(string componentName)
2626
{
27-
return new ComponentCreator(componentName, this);
27+
return new ComponentBuilder(componentName, this);
2828
}
2929

3030
public DependencyFromCreator DependencyFrom(string origin)
@@ -37,7 +37,7 @@ public DependencyToCreator DependencyTo(string target)
3737
return new DependencyToCreator(target, this);
3838
}
3939

40-
private TestDiagram AddComponent(ComponentCreator creator)
40+
private TestDiagram AddComponent(ComponentBuilder creator)
4141
{
4242
string stereotypes = string.Join(" ", creator.Stereotypes.Select(input => "<<" + input + ">>"));
4343
string line = string.Format("[{0}] {1}", creator.ComponentName, stereotypes);
@@ -75,11 +75,11 @@ private StreamWriter CreateTempFile(string path)
7575
return File.CreateText(path);
7676
}
7777

78-
public class ComponentCreator
78+
public class ComponentBuilder
7979
{
8080
private readonly TestDiagram _testDiagram;
8181

82-
public ComponentCreator(string componentName, TestDiagram testDiagram)
82+
public ComponentBuilder(string componentName, TestDiagram testDiagram)
8383
{
8484
ComponentName = componentName;
8585
_testDiagram = testDiagram;
@@ -90,7 +90,7 @@ public ComponentCreator(string componentName, TestDiagram testDiagram)
9090

9191
public List<string> Stereotypes { get; } = new List<string>();
9292

93-
public ComponentCreator WithAlias(string alias)
93+
public ComponentBuilder WithAlias(string alias)
9494
{
9595
Alias = alias;
9696
return this;

ExampleTest/Resources/shopping_example.puml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ catalog --> [Orders]
3333
import -left-> catalog : parse products
3434
import --> xml
3535
import --> [Customers]
36-
note top on link #lightgreen: is responsible for translating XML to java classes
36+
note top on link #lightgreen: is responsible for translating XML to csharp classes
3737

3838

3939
@enduml

0 commit comments

Comments
 (0)