I'm trying to unit test using nunit framework and I am getting the exception below:
SignInManager = 'SignInManager' threw an exception of type 'System.NullReferenceException'
How can resolve this issue?
Below code throwing exception:
ApplicationUser User = await SignInManager.UserManager.FindByNameAsync (login.UserName);
if (User != null) {
}