示例#1
0
        public void WireEventsRegisteresDynamicSubscriber()
        {
            IEventHub hub = NSubstitute.Substitute.For <IEventHub>();

            hub.WireEvents(typeof(DynamicChangeProvider).Assembly);

            hub.Received(1).Subscribe(typeof(DynamicChangeProvider), typeof(ServiceMadatadaChangedEvent));
        }
示例#2
0
 public static IEventHub WireSql(this IEventHub hub)
 {
     hub.WireEvents(typeof(EventHubExtensions).Assembly);
     return(hub);
 }