I am loggedon as user "xyz" on domain "DEV", I created an empty website which at session start in global.asax writes current user(System.Sec urity.Principal .WindowsIdentit y.GetCurrent()) in a file.
I am calling default.aspx from Nunit(using asp extensions) using system.net.webr equest as follows
Code:
ImpersonateLogonUser.ClsImpersonateUser