public void CreateConnectionPool_should_throw_when_serverId_is_null()
        {
            var subject = new ExclusiveConnectionPoolFactory(_settings, _connectionFactory, _eventSubscriber);

            Action act = () => subject.CreateConnectionPool(null, _endPoint);
            act.ShouldThrow<ArgumentNullException>();
        }
        public void CreateConnectionPool_should_throw_when_endPoint_is_null()
        {
            var subject = new ExclusiveConnectionPoolFactory(_settings, _connectionFactory, _eventSubscriber);

            Action act = () => subject.CreateConnectionPool(_serverId, null);

            act.ShouldThrow <ArgumentNullException>();
        }
        public void CreateConnectionPool_should_return_a_ConnectionPool()
        {
            var subject = new ExclusiveConnectionPoolFactory(_settings, _connectionFactory, _eventSubscriber);

            var result = subject.CreateConnectionPool(_serverId, _endPoint);

            result.Should().NotBeNull();
            result.Should().BeOfType <ExclusiveConnectionPool>();
        }
        public void CreateConnectionPool_should_return_a_ConnectionPool()
        {
            var subject = new ExclusiveConnectionPoolFactory(_settings, _connectionFactory, null);

            var result = subject.CreateConnectionPool(_serverId, _endPoint);

            result.Should().NotBeNull();
            result.Should().BeOfType<ExclusiveConnectionPool>();
        }