-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.puml
114 lines (101 loc) · 3.72 KB
/
events.puml
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
@startuml
hide footbox
actor User
participant NUnitTestAssemblyRunner
participant TestExecutionContext
participant Listener
participant SimpleWorkItemDispatcher
participant CompositeWorkItem
participant OneTimeSetUpCommand
participant SimpleWorkItem
participant TestMethodCommand
participant SetUpTearDownCommand
participant SetUpTearDownItem
participant ConstructFixtureCommand
User -> NUnitTestAssemblyRunner: StartRun
NUnitTestAssemblyRunner -> NUnitTestAssemblyRunner: Load tests
NUnitTestAssemblyRunner -> TestExecutionContext ** : CreateContext
TestExecutionContext -> Listener : Add
NUnitTestAssemblyRunner -> SimpleWorkItemDispatcher **: Start(context,toplevelitem)
SimpleWorkItemDispatcher -> CompositeWorkItem: Execute(topLevelWorkItem) [WorkItem]
note right: Assembly
activate CompositeWorkItem
CompositeWorkItem -> CompositeWorkItem: RunOnXThread [WorkItem]
activate CompositeWorkItem
CompositeWorkItem -> Listener: TestStarted
CompositeWorkItem -> CompositeWorkItem: PerformWork
activate CompositeWorkItem
CompositeWorkItem -> CompositeWorkItem: If Children>0
loop for each child
activate CompositeWorkItem
CompositeWorkItem -> OneTimeSetUpCommand **: Create
CompositeWorkItem -> SimpleWorkItemDispatcher: Dispatch(child)
deactivate CompositeWorkItem
deactivate CompositeWorkItem
end
deactivate CompositeWorkItem
deactivate CompositeWorkItem
SimpleWorkItemDispatcher -> CompositeWorkItem: Execute()
note right: Namespace
activate CompositeWorkItem
CompositeWorkItem -> Listener: TestStarted
CompositeWorkItem -> CompositeWorkItem: PerformWork
activate CompositeWorkItem
CompositeWorkItem -> CompositeWorkItem: If Children>0
loop for each child
activate CompositeWorkItem
CompositeWorkItem -> OneTimeSetUpCommand **: Create
CompositeWorkItem -> SimpleWorkItemDispatcher: Dispatch(child)
deactivate CompositeWorkItem
deactivate CompositeWorkItem
deactivate CompositeWorkItem
end
SimpleWorkItemDispatcher -> CompositeWorkItem: Execute()
note right: Class
activate CompositeWorkItem
CompositeWorkItem -> Listener: TestStarted
CompositeWorkItem -> CompositeWorkItem: PerformWork
activate CompositeWorkItem
CompositeWorkItem -> CompositeWorkItem: If Children>0
loop for each child
activate CompositeWorkItem
CompositeWorkItem -> SetUpTearDownItem**: Create
CompositeWorkItem -> OneTimeSetUpCommand **: Create(item)
CompositeWorkItem -> ConstructFixtureCommand **: Create(command)
CompositeWorkItem -> ConstructFixtureCommand : Execute()
activate ConstructFixtureCommand
ConstructFixtureCommand -> ConstructFixtureCommand: Run
ConstructFixtureCommand -> OneTimeSetUpCommand: Execute()
activate OneTimeSetUpCommand
OneTimeSetUpCommand -> SetUpTearDownItem : RunSetUp
deactivate OneTimeSetUpCommand
deactivate ConstructFixtureCommand
deactivate CompositeWorkItem
CompositeWorkItem -> SimpleWorkItemDispatcher: Dispatch(child)
deactivate CompositeWorkItem
deactivate CompositeWorkItem
end
SimpleWorkItemDispatcher -> SimpleWorkItem : Execute()
note right: TestMethod
activate SimpleWorkItem
SimpleWorkItem -> Listener: TestStarted
SimpleWorkItem -> SimpleWorkItem: PerformWork
activate SimpleWorkItem
SimpleWorkItem -> TestMethodCommand **: Create
SimpleWorkItem -> SetUpTearDownItem **: Create (item)
SimpleWorkItem -> SetUpTearDownCommand **: Create (command,item)
deactivate SimpleWorkItem
SimpleWorkItem -> SetUpTearDownCommand : Execute()
activate SetUpTearDownCommand
SetUpTearDownCommand -> SetUpTearDownItem : RunSetUp
SetUpTearDownCommand -> TestMethodCommand : Execute
deactivate SetUpTearDownCommand
SimpleWorkItem -> Listener: TestFinished
deactivate SimpleWorkItem
CompositeWorkItem -> Listener: TestFinished
note right: Class
CompositeWorkItem -> Listener: TestFinished
note right: NameSpace
CompositeWorkItem -> Listener: TestFinished
note right: Assembly
@enduml