예제 #1
0
        public DistributedEventBrokerExtensionBaseTest()
        {
            this.eventBrokerBus = new Mock <IEventBrokerBus>();
            this.eventBroker    = new Mock <IEventBroker>();
            this.registerer     = new Mock <IEventRegistrar>();
            this.factory        = new Mock <IDistributedFactory>
            {
                DefaultValue = DefaultValue.Mock
            };

            this.distributedEventBrokerIdentification = "TestDistributedEventBroker";

            this.testee = new TestableDistributedEventBrokerExtensionBase(this.distributedEventBrokerIdentification, this.eventBrokerBus.Object, this.factory.Object, this.registerer.Object);
        }
        public DistributedEventBrokerExtensionBaseTest()
        {
            this.eventBrokerBus = new Mock<IEventBrokerBus>();
            this.eventBroker = new Mock<IEventBroker>();
            this.internalEventBroker = new Mock<IEventBroker>();
            this.internalRegisterer = this.internalEventBroker.As<IEventRegistrar>();
            this.factory = new Mock<IDistributedFactory>
                               {
                                   DefaultValue = DefaultValue.Mock
                               };

            this.distributedEventBrokerIdentification = "TestDistributedEventBroker";

            DistributedEventBrokerExtensionBase.InternalEventBroker = this.internalEventBroker.Object;

            this.testee = new TestableDistributedEventBrokerExtensionBase(this.distributedEventBrokerIdentification, this.eventBrokerBus.Object, this.factory.Object);
        }