When calling StubTopicRepository.Load(topic, version) or Load(topicId, version, referenceTopic), the TopicLoaded event is correctly raised, but doesn't contain the version parameter. That's because these overloads call into Load(uniqueKey, isRecursive), and it's that overload which is raising the event. To fix this, the Load(uniqueKey, isRecursive) logic will likely need to be moved into its own private function, which each of the public overloads responsible for raising their own event.
When calling
StubTopicRepository.Load(topic, version)orLoad(topicId, version, referenceTopic), theTopicLoadedevent is correctly raised, but doesn't contain theversionparameter. That's because these overloads call intoLoad(uniqueKey, isRecursive), and it's that overload which is raising the event. To fix this, theLoad(uniqueKey, isRecursive)logic will likely need to be moved into its ownprivatefunction, which each of thepublicoverloads responsible for raising their own event.