Example #1
0
        public ModsetsTestApiFixture()
        {
            _socketsHttpHandler = new SocketsHttpHandler();
            HttpClient          = new HttpClient(_socketsHttpHandler)
            {
                BaseAddress = new Uri($"http://localhost:{Port}")
            };

            _host = Host.CreateDefaultBuilder()
                    .ConfigureWebHostDefaults(ConfigureWebBuilder())
                    .Build();

            ModsetsStorage = _host.Services.GetRequiredService <ModsetsStorage>();

            _host.Start();
        }
 public ModsetsTestController(ModsetsStorage modsetsStorage)
 {
     _modsetsStorage = modsetsStorage;
 }