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); }
public SearchController( ITorrentFinderHttpService torrentFinderHttpService) { this.torrentFinderHttpService = torrentFinderHttpService; }