Esempio n. 1
0
        public TestWebApiBase(TestFixture <TStartup> fixture, ITestOutputHelper outputHelper)
        {
            OutputHelper = outputHelper;
            var converter = new ConverterTool(OutputHelper);

            Console.SetOut(converter);

            HttpClient = fixture.HttpClient;
        }
Esempio n. 2
0
        public TestBase(ITestOutputHelper outputHelper)
        {
            OutputHelper = outputHelper;


            var service = NewTestServer();

            HttpClient = service.CreateClient();
            //HttpClient.BaseAddress = new Uri("http://localhost:5000");

            var converter = new ConverterTool(OutputHelper);

            Console.SetOut(converter);
        }