I currently have a Asp.net Core Web.Api project.
It (only) targets the net452 framework.
Question is: How do I unit test an asp,net core WebAPI (net452) project?
I already tried adding a classic .net unit testing project to my solution, with a reference to my web.api core project. For some reason, I'm not able to declare (refer) any class inside my webapi project. From this, I conclude, I cannot use a classic unit testing project to test my Asp.net core project.
inside my project.json:
"frameworks": {
"net452": {}
}
}
this is how my solution looks like:
inside my test class:
[TestClass]
public class ActiveDirectoryClientProviderTests
{
[TestMethod]
public async Task Get_Should_Return_Client()
{
//var settings = new ActiveDirectorySettings();
Ng2Aa_demo.Domain.Avatar.GetAvatarByUserHandler
}
}


