public void GetQueuesFeature_ShouldGerOrAddFeatureFromEventsContext()
        {
            var feature = new EventsScopeQueuesFeature();
            Func <IScopedAppServiceProvider, IEventsScopeQueuesFeature> factory = null;

            _eventsScopeMock
            .Setup(
                x => x.GetOrAddFeature(It.IsAny <Func <IScopedAppServiceProvider, IEventsScopeQueuesFeature> >())
                )
            .Callback <Func <IScopedAppServiceProvider, IEventsScopeQueuesFeature> >(
                x => factory = x
                )
            .Returns(feature)
            .Verifiable();

            var returnedFeature = _eventsScopeMock.Object.GetQueuesFeature();
            var factoryFeature  = factory(_scopedAppServiceProviderMock.Object);

            Assert.That(returnedFeature, Is.EqualTo(feature));
            Assert.That(factoryFeature, Is.TypeOf <EventsScopeQueuesFeature>());
        }
        public void SetUp()
        {
            _eventsContextMock = new Mock <IEventsContext>(MockBehavior.Strict);

            _eventsScope = new EventsScopeQueuesFeature();
        }