From Unitesting, how to mock custom UserStore and RoleStore


+1 vote
asked Mar 16, 2016 by kenning_244 (1,290 points)
Kindly help me to solve the issue. Identity with custom UserStore and RoleStore. So that I can launch a specific activity that is needed

4 Answers

0 votes
answered Jun 2, 2016 by somvang (440 points) 1 flag
 
Best answer
I encountered this problem after removing some projects from the solution. Check this link ASP.NET MVC 5 Identity: Extending and Modifying Roles ...
commented Jun 3, 2016 by slots6020 (100 points)
All of the optional interfaces inherit from IUserStore
+1 vote
answered May 5, 2016 by Ba4200 (180 points)

For a complete implementation, see RoleStore (MySQL) .
This class is equivalent to the RoleStore class in the Microsoft.
For example, the UserStore.

Links has such a format http://www.asp.net/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity and this doesn't work
0 votes
answered Jun 2, 2016 by frr_6673_To (140 points)

The RoleStore class actually defines a Delete Async method.
commented Jun 3, 2016 by First (250 points)
IdentityUserClaim, IdentityUserLogin, and IdentityUserRoleThe Microsoft
commented Jun 3, 2016 by Jvy_You (110 points)
The TKey generic parameter takes the type of your user key
commented Jun 4, 2016 by wattson (1,690 points)
This class is equivalent to the UserStore class in the Microsoft
0 votes
answered Jun 2, 2016 by pachla (140 points)
This is a very funny problem that I am also facing. I want to check code from the repository ProgramGood.Net - MVC5

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...