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);
        }
示例#2
0
 protected virtual IDomainEventCatalog CreateDomainEventCatalog()
 {
     return(DomainEventCatalog = new DomainEventCatalog());
 }