I currently have an Asp.net Core Web.Api project.
It (only) targets the net452 infrastructure .
Question: How to make a unit test project asp, net core WebAPI (net452)?
I have already tried adding a classic .net testing project to my project, with a link to my main web.api project. For some reason, I cannot declare (reference) to any class inside my webapi project. From this, I came to the conclusion that I cannot use the classic unit testing project to test the main Asp.net project.
inside my project.json:
"frameworks": {
"net452": {}
}
}
this is my solution:

inside my test class:
[TestClass]
public class ActiveDirectoryClientProviderTests
{
[TestMethod]
public async Task Get_Should_Return_Client()
{
Ng2Aa_demo.Domain.Avatar.GetAvatarByUserHandler
}
}