public void When_having_some_configuration_adapter_adds_itself_as_service()
        {
            var setup = new FlexibleSubscribeAdapter();
            setup.RegisterMethods("Handle");

            var bus = (IConfigurableBus)Substitute.For(new[] { typeof(IConfigurableBus), typeof(IBus) }, new object[0]);
            ((ISetup<IConfigurableBus>)setup).Accept(bus);

            bus.Received().AddService<IAdapterServices>(setup);
        }
Ejemplo n.º 2
0
        public void When_having_some_configuration_adapter_adds_itself_as_service()
        {
            var setup = new FlexibleSubscribeAdapter();

            setup.RegisterMethods("Handle");

            var bus = (IConfigurableBus)Substitute.For(new[] { typeof(IConfigurableBus), typeof(IBus) }, new object[0]);

            ((ISetup <IConfigurableBus>)setup).Accept(bus);

            bus.Received().AddService <IAdapterServices>(setup);
        }
Ejemplo n.º 3
0
 protected override void ConfigureAdapter(FlexibleSubscribeAdapter adp)
 {
     adp.RegisterMethods("Handle").RegisterMethods(mi => true);
 }
Ejemplo n.º 4
0
 protected override void ConfigureAdapter(FlexibleSubscribeAdapter adp)
 {
     adp.RegisterMethods(mi => mi.Name.StartsWith("E"));
 }
Ejemplo n.º 5
0
 protected override void ConfigureAdapter(FlexibleSubscribeAdapter adp)
 {
     adp.RegisterMethods(mi => mi.Name.StartsWith("E"));
 }
 protected override void ConfigureAdapter(FlexibleSubscribeAdapter adp)
 {
     adp.RegisterMethods("Handle").RegisterMethods(mi => true);
 }