I am using ASP.NET 5 RC1 and I need to write a few integration tests so I have:
public class IntegrationTests {
private readonly TestServer _server;
private readonly HttpClient _client;
public IntegrationTests() {
_server = new TestServer(TestServer.CreateBuilder().UseStartup<Startup>());
_client = _server.CreateClient();
}
// Test methods ...
}
When I run it I get the error:
The configuration file 'C:\Projects\ASPNET5_TEST\config.json' was not found and is not optional.
Do I need to copy config.json to the Test project and maintain the 2?
How can I use the config.json of my web project?
Aucun commentaire:
Enregistrer un commentaire