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()); }
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()); }