internal string GetFullUserName()
{
if (!string.IsNullOrEmpty(User.Identity.Name))
{
return ((ICorePrincipal)HttpContext.Current.User).CoreUser.FirstName + " " + ((ICorePrincipal)HttpContext.Current.User).CoreUser.LastName;
}
return null;
}
when this method is called its always returning null values. how to mock it? i tried using httpcontext mocking but i am not sure why its not working