Skip to content

Commit

Permalink
Remove ValidateState
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken committed Jul 3, 2024
1 parent 9bf1ee6 commit f6c246c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/MinimalRichDomain/EventSourcedEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ protected virtual bool CanApply(IDomainEvent @event)

private void AppliedDomainEvent(IDomainEvent domainEvent)
{
ValidateState();
_domainEvents.Add(domainEvent);
CurrentVersion++;
}

protected abstract void ValidateState();
}

0 comments on commit f6c246c

Please sign in to comment.