public BaseHttpTest(HttpTestConfiguration httpTestConfiguration = null)
        {
            HttpTestConfiguration config = new HttpTestConfiguration();

            if (httpTestConfiguration != null)
            {
                config = httpTestConfiguration;
            }
            this.webApplicationFactory = new CustomWebApplicationFactory <StartupType>(config);
        }
        protected Guid AddServer <StartupType>(HttpTestConfiguration config, bool DoStartServerAfterwards = true) where StartupType : class
        {
            Guid result = Guid.NewGuid();

            this.startups.Add(result, typeof(StartupType));
            this.servers.Add(result, new CustomWebApplicationFactory <StartupType>(config));

            if (DoStartServerAfterwards)
            {
                this.startLocalServer(result);
            }

            return(result);
        }
        public TwoServerTest(HttpTestConfiguration httpTestConfiguration1 = null, HttpTestConfiguration httpTestConfiguration2 = null)
        {
            HttpTestConfiguration config1 = new HttpTestConfiguration();

            if (httpTestConfiguration1 != null)
            {
                config1 = httpTestConfiguration1;
            }
            HttpTestConfiguration config2 = new HttpTestConfiguration();

            if (httpTestConfiguration2 != null)
            {
                config2 = httpTestConfiguration2;
            }
            this.webApplicationFactory1 = new CustomWebApplicationFactory <StartupType1>(config1);
            this.webApplicationFactory2 = new CustomWebApplicationFactory <StartupType2>(config2);
        }