Example #1
0
        public void Invalidate_should_clear_the_connection_pool()
        {
            _subject.Initialize();
            _capturedEvents.Clear();

            _subject.Invalidate("Test", responseTopologyDescription: null);
            _mockConnectionPool.Verify(p => p.Clear(It.IsAny <bool>()), Times.Once);
        }