Пример #1
0
 public JournalTocsClient(JournalTocsSettings settings, IWebClientFactory webClientFactory)
 {
     _settings = settings;
     _webClientFactory = webClientFactory;
 }
Пример #2
0
        JournalTocsClient CreateClient()
        {
            _factory = new Mock<IWebClientFactory>();
            _webClient = new Mock<IWebClient>();

            _factory.Setup(x => x.Create()).Returns(_webClient.Object);

            _settings = new JournalTocsSettings();
            return new JournalTocsClient(_settings, _factory.Object);
        }