Fix tests
This commit is contained in:
parent
aa9d60e4d1
commit
96b3b77b79
3 changed files with 13 additions and 3 deletions
|
|
@ -126,7 +126,7 @@ class TerminateHandler()
|
|||
ContractState
|
||||
]:
|
||||
|
||||
val name = "reject"
|
||||
val name = "terminate"
|
||||
|
||||
def onCommand(entityId: String, state: ContractState, command: ContractCommand.Terminate)
|
||||
: Task[ContractEvent.Terminated] =
|
||||
|
|
|
|||
|
|
@ -28,7 +28,14 @@ object ContractState:
|
|||
extends ContractState derives Schema:
|
||||
|
||||
def amend(e: ContractEvent.Amended) =
|
||||
Actif(e.product, holder, e.vehicle, e.formula, e.premium)
|
||||
PendingAmendment(
|
||||
product,
|
||||
holder,
|
||||
vehicle,
|
||||
formula,
|
||||
premium,
|
||||
PendingChanges(e.product, e.vehicle, e.formula, e.premium)
|
||||
)
|
||||
|
||||
def terminate() =
|
||||
Terminated(product, holder, vehicle, formula, premium)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue