public void Should_return_the_event_types_for_the_configuration() { var network = new ChannelAdapter(); network.Connect(x => { x.AddConsumerOf<PostUpdateEvent<TestInstance>>() .UsingConsumer(msg => { }); }); var configurator = new PostUpdateEventConfigurator(); var visitor = new AuditEventConsumerChannelVisitor(new EventListenerConfigurator[] { configurator, }); visitor.Configure(network); configurator.Types.Count().ShouldEqual(1); configurator.Types.First().ShouldEqual(typeof(TestInstance)); }
public void Should_return_the_event_types_for_the_configuration() { var network = new ChannelAdapter(); network.Connect(x => { x.AddConsumerOf <PostUpdateEvent <TestInstance> >() .UsingConsumer(msg => { }); }); var configurator = new PostUpdateEventConfigurator(); var visitor = new AuditEventConsumerChannelVisitor(new EventListenerConfigurator[] { configurator, }); visitor.Configure(network); configurator.Types.Count().ShouldEqual(1); configurator.Types.First().ShouldEqual(typeof(TestInstance)); }