-
Notifications
You must be signed in to change notification settings - Fork 2
/
quiztaker-class-v2.puml
51 lines (39 loc) · 1.1 KB
/
quiztaker-class-v2.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
@startuml
' what it will be
package "Quiz Creator Bounded Context" {
entity Quiz <<AggRoot>> {
Quiz ID
}
interface Question
note right of Question: not sure what this API is
class MultipleChoiceQuestion <<Value Object>>
Question <|-- MultipleChoiceQuestion
Quiz --> Question: 1..*
class Choice <<Value Object>>
MultipleChoiceQuestion --> Choice
class FillInTheBlankQuestion <<Value Object>>
Question <|-- FillInTheBlankQuestion
interface AnswerValidator
class DefaultAnswerValidator <<Value Object>>
AnswerValidator <|-- DefaultAnswerValidator
}
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>>
QuizSubmission --> Quiz: 1..1
User -> QuizTaker : 1..1
QuizTaker --> QuizSubmission : 0..*
QuizSubmission -> Response : 0..*
}
@enduml