public void Init() { var catalog = new DomainEventCatalog(new Collection <DomainEventEntry> { new DomainEventEntry(typeof(DomainEvent1), typeof(MockDomainEventHandler <DomainEvent1>)), new DomainEventEntry(typeof(DomainEvent2), typeof(MockReusableDomainEventHandler <DomainEvent2>)) }); _factory = new DomainEventHandlerFactory(catalog); }
protected virtual IDomainEventCatalog CreateDomainEventCatalog() { return(DomainEventCatalog = new DomainEventCatalog()); }