Beispiel #1
0
        public void when_destroy_called__should_delegate_sip_stack_destroy_to_api()
        {
            var basicApi = _fixture.CreateAnonymous<Mock<IBasicApiProvider>>();
            var eventsProvider = _fixture.CreateAnonymous<IEventsProvider>();

            var sut = new DefaultSipUserAgent(basicApi.Object, eventsProvider, _fixture.CreateAnonymous<LoggingConfig>(),
                _fixture.CreateAnonymous<IContainer>());
            sut.Destroy();

            basicApi.Verify(x => x.Destroy(), Times.Once());
        }
Beispiel #2
0
        public void when_destroy_called__should_delegate_sip_stack_destroy_to_api()
        {
            var basicApi       = _fixture.CreateAnonymous <Mock <IBasicApiProvider> >();
            var eventsProvider = _fixture.CreateAnonymous <IEventsProvider>();

            var sut = new DefaultSipUserAgent(basicApi.Object, eventsProvider, _fixture.CreateAnonymous <LoggingConfig>(),
                                              _fixture.CreateAnonymous <IContainer>());

            sut.Destroy();

            basicApi.Verify(x => x.Destroy(), Times.Once());
        }