Example #1
0
        public void Dispose_CallsEventStreamClientDispose()
        {
            m_mockedEventStreamClient.Setup(c => c.Dispose());
            m_mockedEventStreamProcessor.SetupSet(p => p.OnMessage = null);

            m_sut.Dispose();

            m_mockRepository.VerifyAll();
        }
        void IServerSentEventsClient.Stop()
        {
            IServerSentEventsClient @this = this;

            @this.Dispose();
        }