protected override IMessageRouteMap CreateMap() { var faultyHandlerMap = new CustomRouteMap(r => r.RegisterProjectionGroup(new TestGroup(new UnityContainer())), r => r.RegisterAggregate(SampleAggregatesCommandHandler.Descriptor)); return(new CompositeRouteMap(faultyHandlerMap)); }
protected override IMessageRouteMap CreateMap() { var faultyHandlerMap = new CustomRouteMap( r => r.RegisterAggregate(SampleAggregatesCommandHandler.Descriptor)); return(new CompositeRouteMap(faultyHandlerMap)); }
// protected override bool CreateNodeOnEachTest { get; } = true; protected override IMessageRouteMap CreateMap() { var faultyHandlerMap = new CustomRouteMap( r => r.RegisterHandler <SampleAggregateChangedEvent, OddFaultyMessageHandler>(e => e.SourceId), r => r.RegisterHandler <SampleAggregateCreatedEvent, FaultyCreateProjectionBuilder>(e => e.SourceId), r => r.RegisterAggregate(SampleAggregatesCommandHandler.Descriptor)); return(new CompositeRouteMap(faultyHandlerMap)); }