public void Setup()
        {
            appSettingsMock = new Mock <IAppSettings>();
            appSettingsMock.SetupGet(x => x.TorrentFinderApiUrl).Returns("https://www.google.com");

            restClientMock = new Mock <IRestClient>();

            service = new TorrentFinderHttpService(
                appSettingsMock.Object, restClientMock.Object);
        }
예제 #2
0
 public SearchController(
     ITorrentFinderHttpService torrentFinderHttpService)
 {
     this.torrentFinderHttpService = torrentFinderHttpService;
 }