Beispiel #1
0
        public void Start()
        {
            var config = new FunctionalTestConfig
            {
                TestClassType = _testClassType
            };

            _host = new WebHostBuilder()
                    .UseKestrel()
                    .UseUrls(_url)
                    .ConfigureServices(s => s.AddSingleton(config))
                    .UseStartup <Startup>()
                    .Build();

            _host.Start();

            HttpClient = new HttpClient
            {
                BaseAddress = new Uri(_url)
            };
        }
Beispiel #2
0
 public Startup(FunctionalTestConfig config)
 {
     _config = config;
 }