public MirrorIntegrationTests(ITestOutputHelper output) { _upstream = new BaGetApplication(output); _downstream = new BaGetApplication(output, _upstream.CreateClient()); _downstreamClient = _downstream.CreateClient(); _packageStream = TestResources.GetResourceStream(TestResources.Package); }
public ApiIntegrationTests(ITestOutputHelper output) { _app = new BaGetApplication(output); _client = _app.CreateClient(); _packageStream = TestResources.GetResourceStream(TestResources.Package); _symbolPackageStream = TestResources.GetResourceStream(TestResources.SymbolPackage); }
public BaGetClientIntegrationTests(ITestOutputHelper output) { _app = new BaGetApplication(output); var serviceIndexUrl = new Uri(_app.Server.BaseAddress, "v3/index.json"); _httpClient = _app.CreateClient(); _clientFactory = new NuGetClientFactory(_httpClient, serviceIndexUrl.AbsoluteUri); _client = new NuGetClient(_clientFactory); _packageStream = TestResources.GetResourceStream(TestResources.Package); }