I'm using sharepoint 2013 and trying to unit testing for my methods. Had issues in methods having SPContext and HTTPContext but can resolve that with help of article here
Now i want to test the methods which are using SPUser, in order to achieve this i want to mock the user with my own data for example. I want the SPUser.LoginName as "test" and SPUser.Email as [email protected].
My aim is to to mock the current user in unit testing i.e, web.CurrentUser
Can anyone help on this?.
Thanks in advance..