public RegistrarTest() { this.factory = A.Fake<IFactory>(); this.eventTopicHost = A.Fake<IEventTopicHost>(); this.eventInspector = A.Fake<IEventInspector>(); this.extensionsHost = A.Fake<IExtensionHost>(); this.testee = new Registrar(this.factory, this.eventTopicHost, this.eventInspector, this.extensionsHost); }
/// <summary> /// Initializes a new instance of the <see cref="EventBroker"/> class. /// </summary> /// <param name="factory">The factory.</param> public EventBroker(IFactory factory) { Ensure.ArgumentNotNull(factory, "factory"); this.factory = factory; this.factory.Initialize(this); this.globalMatchersHost = this.factory.CreateGlobalMatchersHost(); this.eventTopicHost = this.factory.CreateEventTopicHost(this.globalMatchersHost); this.eventInspector = this.factory.CreateEventInspector(); this.registrar = this.factory.CreateRegistrar(this.eventTopicHost, this.eventInspector, this); }
public void ProcessedSubscriber(object subscriber, bool register, IEventTopicHost eventTopicHost) { this.log.AppendLine("ProcessedSubscriber"); }
public void ProcessedPublisher(object publisher, bool register, IEventTopicHost eventTopicHost) { this.log.AppendLine("ProcessedPublisher"); }
/// <summary> /// Called after a (potential) subscriber was processed. /// </summary> /// <param name="subscriber">The subscriber.</param> /// <param name="register">Whether the subscriber is registered; or unregistered.</param> /// <param name="eventTopicHost">The event topic host.</param> public virtual void ProcessedSubscriber(object subscriber, bool register, IEventTopicHost eventTopicHost) { }
/// <summary> /// Called after a (potential) publisher was processed. /// </summary> /// <param name="publisher">The publisher.</param> /// <param name="register">Whether the publisher is registered; or unregistered.</param> /// <param name="eventTopicHost">The event topic host.</param> public virtual void ProcessedPublisher(object publisher, bool register, IEventTopicHost eventTopicHost) { }