Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Use XUnit fixture for integration test #112

@pietersap

Description

@pietersap

Similar to #99 , test server should be initialized once for all tests using an XUnit fixture, instead of creating it in the test constructor

       public ProblemJsonTest()
        {
            if (_httpClient != null) { return; }
            var srv = new TestServer(new WebHostBuilder()
                .UseEnvironment("Development")
                .UseStartup<Startup>());

            _httpClient = srv.CreateClient();
        }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions