Creating a UserManager outside of built in dependency injection system

后端 未结 3 1223
太阳男子
太阳男子 2021-01-04 11:24

This is using asp.net core with identity and entity framework core. I working on a saas application where I have a separate admin web app where you can add new tenants to t

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-04 12:00

    I would think you should have at least the UserStore:

     UserStore _userStore = new UserStore(context, null);
     Mock>> mockLogger = null;
     mockLogger = new Mock>>();
    

    I mocked the logger.

提交回复
热议问题