public Registrar(IFactory factory, IEventTopicHost eventTopicHost, IEventInspector eventInspector, IExtensionHost extensionHost) { this.factory = factory; this.eventTopicHost = eventTopicHost; this.eventInspector = eventInspector; this.extensionHost = extensionHost; }
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); }
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) { this.factory = factory; this.factory.Initialize(this); this.globalMatchersHost = this.factory.CreateGlobalMatchersHost(); this.eventTopicHost = this.factory.CreateEventTopicHost(this.globalMatchersHost); this.eventInspector = this.factory.CreateEventInspector(); }
/// <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(); }
/// <summary> /// Initializes a new instance of the <see cref="EventBroker"/> class. /// </summary> /// <param name="factory">The factory.</param> public EventBroker(IFactory factory) { Guard.AgainstNullArgument(nameof(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); }
/// <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 virtual IEventRegistrar CreateRegistrar(IEventTopicHost eventTopicHost, IEventInspector eventInspector, IExtensionHost extensionHost) { return(new Registrar(this, eventTopicHost, eventInspector, extensionHost)); }