views:

17

answers:

0

Hi guys,

I have some methods that has RequireAuthentication and RequiresRole attribute and some methods that require authenticated user's identity (Which i will get from ServiceContext.User.Identity).

How can I unit test these kind of methods?

Thanks.