public HttpMonitorTestControllerTests(WebApiAppFixture fixture)
        {
            _fixture = fixture;
            _client  = new HttpMonitorClient(fixture.HttpClient);

            _httpServer = OpenHttpServer.CreateAndRun();
        }
        public HttpMonitorExecutorTests()
        {
            _httpServer = OpenHttpServer.CreateAndRun();

            // todo configure client with custom logic since it needs to be configured per rules of executor
            _httpClient = _httpServer.CreateClient();
            _executor   = new HttpMonitorExecutor(_httpClient);
        }
Пример #3
0
 public FuncAppFixture()
 {
     _documentDbFixture = new DocumentDbFixture();
     _httpServer        = OpenHttpServer.CreateAndRun();
     _httpClient        = new HttpClient()
     {
         BaseAddress = new Uri("http://localhost:7071")
     };
     // todo: delete container
 }