proptest-rs / proptest

Hypothesis-like property testing for Rust
Apache License 2.0
1.63k stars 152 forks source link

The type 'EasyCashIdentity.EntityLayer.Concrete.AppUser' cannot be used as type parameter #443

Closed arpaci27 closed 2 months ago

arpaci27 commented 2 months ago

using EasyCashIdentity.EntityLayer.Concrete; using Microsoft.AspNet.Identity; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc;

namespace EasyCashIdentity.PresentationLayer.Controllers { [Authorize]

public class MyAccountsController : Controller
{
    private readonly UserManager<AppUser> _userManager;

    public MyAccountsController(UserManager<AppUser> userManager)
    {
        _userManager = userManager;
    }
    [HttpGet]

    public IActionResult Index()
    {
        return View();
    }
}

}

There is my code and I am just getting the error, it says;

"CS0311: The type 'EasyCashIdentity.EntityLayer.Concrete.AppUser' cannot be used as type parameter 'TUser' in the generic type or method 'UserManager'. There is no implicit reference conversion from 'EasyCashIdentity.EntityLayer.Concrete.AppUser' to 'Microsoft.AspNetCore.Identity.IdentityUser'."

What Should I do?