public override bool TryResolveConflicts(IEnumerable <DomainEvent> missingEvents) { if (UncommittedEvents.Any(IsConflictingEvent)) { return(false); } if (missingEvents.Any(IsConflictingEvent)) { return(false); } return(true); }
protected static bool EventHasBeenRaised <T>() { return(UncommittedEvents.Any(x => x.GetType() == typeof(T))); }
public bool HasChanges() => UncommittedEvents.Any();