![]() |
1
1
您可以使用依赖注入(DI)并通过自定义RoleProvider的构造函数传递它。
这将允许您通过构造函数传递MOQ实例。 |
![]() |
Wasfa · 在注册时分配用户的默认角色 11 年前 |