Skip to content

Commit

Permalink
(#87) fix event mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
eggwhat committed Apr 26, 2024
1 parent 06423ce commit 4517a92
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ public IEvent Map(IDomainEvent @event)
{
switch (@event)
{
case StudentRegistrationCompleted e:
return new Application.Events.StudentCreated(e.Student.Id, e.Student.FullName);
case StudentUpdated e:
return new Application.Events.StudentUpdated(e.Student.Id, e.Student.FullName);
case StudentStateChanged e:
return new Application.Events.StudentStateChanged(e.Student.Id, e.Student.FullName,
e.Student.State.ToString().ToLowerInvariant(), e.PreviousState.ToString().ToLowerInvariant());

}

return null;
Expand Down

0 comments on commit 4517a92

Please sign in to comment.