Exemplo n.º 1
0
 public Registrar(IFactory factory, IEventTopicHost eventTopicHost, IEventInspector eventInspector, IExtensionHost extensionHost)
 {
     this.factory        = factory;
     this.eventTopicHost = eventTopicHost;
     this.eventInspector = eventInspector;
     this.extensionHost  = extensionHost;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        /// <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();
        }
Exemplo n.º 5
0
        /// <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();
        }
Exemplo n.º 6
0
        /// <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);
        }
Exemplo n.º 7
0
        /// <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));
 }