public void FinishEmitsFinishedEvent() { todoItem.Finish(); var lastEvent = todoItem.DomainEvents.LastOrDefault(); Assert.That(lastEvent.GetType() == typeof(TodoItemMarkedAsFinished)); }