I've been trying and searching for awhile now but i can't find any way to decently mock this. I have found a way to mock the logging in quite easily with the fakehttpcontext. However this method: Membership.GetUser().ProviderUserKey.ToString() still won't work when you mock it like that. I'm currently using Moq as my mocking framework but can't find any documentation.
Aucun commentaire:
Enregistrer un commentaire