-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquiztaker-class.puml
56 lines (45 loc) · 1.13 KB
/
quiztaker-class.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
@startuml
title "What it is now"
package "Quiz Creator Bounded Context" {
entity Quiz <<AggRoot>> {
Quiz ID
}
interface AnswerValidator
class DefaultAnswerValidator <<Value Object>>
AnswerValidator <|-- DefaultAnswerValidator
entity Question <<Entity>> {
QuestionNumber
QuestionType
String stem
}
Question -> AnswerValidator
Quiz --> Question: 1..*
class Choice <<Value Object>>
note top of Choice: currently is Response
Question --> Choice
interface QuestionResponse
QuestionResponse <|-- RealQuestionResponse
}
package "Test Taker Bounded Context" {
entity User <<AggRoot>> {
User ID
}
entity QuizTaker <<AggRoot>> {
QuizTaker ID
Map<Quiz ID, QuizSubmission ID>
}
entity QuizSubmission <<AggRoot>> {
QuizSubmission ID
Quiz ID
Map<Question ID, Response>
}
class Response <<Value Object>> {
Question ID
Choice: ?
}
QuizSubmission --> Quiz: 1..1
User -> QuizTaker : 1..1
QuizTaker --> QuizSubmission : 0..*
QuizSubmission -> Response : 0..*
}
@enduml