예제 #1
0
        public MirrorIntegrationTests(ITestOutputHelper output)
        {
            _upstream   = new BaGetApplication(output);
            _downstream = new BaGetApplication(output, _upstream.CreateClient());

            _downstreamClient = _downstream.CreateClient();
            _packageStream    = TestResources.GetResourceStream(TestResources.Package);
        }
예제 #2
0
        public ApiIntegrationTests(ITestOutputHelper output)
        {
            _app    = new BaGetApplication(output);
            _client = _app.CreateClient();

            _packageStream       = TestResources.GetResourceStream(TestResources.Package);
            _symbolPackageStream = TestResources.GetResourceStream(TestResources.SymbolPackage);
        }
예제 #3
0
        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);
        }