public MissionsTestApiFixture()
        {
            _socketsHttpHandler = new SocketsHttpHandler();
            HttpClient          = new HttpClient(_socketsHttpHandler)
            {
                BaseAddress = new Uri($"http://localhost:{Port}")
            };

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

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

            _host.Start();
        }
Exemplo n.º 2
0
 public MissionsTestController(MissionsStorage missionsStorage)
 {
     _missionsStorage = missionsStorage;
 }