public HealthCheckTests(MockWebApplicationFactory <Startup> factory)
        {
            _factory = factory;
            var client = _factory.CreateClient();

            _steps = new HealthCheckSteps(client);
        }
Exemplo n.º 2
0
        public GetTransactionsStories(MockWebApplicationFactory <Startup> factory)
        {
            var httpClient    = factory.CreateClient();
            var elasticClient = factory.ElasticSearchClient;

            _transactionsSteps   = new GetTransactionsSteps(httpClient);
            _transactionsFixture = new TransactionsFixture(elasticClient, httpClient);
        }
        public GetPersonsStories(MockWebApplicationFactory <Startup> factory)
        {
            _factory = factory;
            var httpClient    = factory.CreateClient();
            var elasticClient = factory.ElasticSearchClient;

            _steps          = new GetPersonsSteps(httpClient);
            _personsFixture = new PersonsFixture(elasticClient, httpClient);
        }
 public PlayerControllerIntegrationTests(MockWebApplicationFactory <Startup> mockFactory)
 {
     this.mockFactory = mockFactory;
     client           = mockFactory.CreateClient();
 }