Exemple #1
0
        public GetToDoTest(InfraFixture infraFixture)
        {
            _httpClient = infraFixture.InfraInstance.HttpClient;
            var scope = infraFixture.InfraInstance.ServiceProvider.CreateScope();

            _dbContext = scope.ServiceProvider.GetRequiredService <ToDoDbContext>();
        }
Exemple #2
0
 public PostToDoTest(InfraFixture infraFixture)
 {
     _httpClient = infraFixture.InfraInstance.HttpClient;
 }
Exemple #3
0
 public ApiTests(ITestOutputHelper outputHelper, InfraFixture infrastructure)
 {
     _output         = outputHelper;
     _infrastructure = infrastructure;
     _fakeurl        = "http://fake.url";
 }