Skip to content

Commit

Permalink
Fix: deactivate method
Browse files Browse the repository at this point in the history
  • Loading branch information
GreRut committed Nov 11, 2024
1 parent ecd2e9f commit e520cd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion EventSourcing/AccountAggregate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ private void Apply(Event accountEvent)
case WithdrawalEvent withdrawal:
Apply(withdrawal);
break;
case DeactivationEvent deactivation:
Apply(deactivation);
break;
default:
throw new EventTypeNotSupportedException("162 ERROR_EVENT_NOT_SUPPORTED");
}
Expand Down Expand Up @@ -80,7 +83,8 @@ private void Apply(WithdrawalEvent withdrawal)

private void Apply(DeactivationEvent deactivation)
{
throw new NotImplementedException();
Status = AccountStatus.Disabled;
// AccountLog =
}

private void Apply(ActivationEvent activation)
Expand Down

0 comments on commit e520cd0

Please sign in to comment.