Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [TestFixture]
- public class ImpersonationTestFixture
- {
- [Test]
- [Impersonate(UserName = "Cavey", Password = "l@ff@lympix", Domain = "ScoobyDoobies")]
- [Impersonate(UserName = "Shaggy", Password = "p1zz@", Domain = "ScoobyDoobies")]
- [Impersonate(UserName = "FredFlintstone", Password = "br0nt0", Domain = "ScoobyDoobies")]
- public void ImpersonationTest()
- {
- // We just write the name of the current user in the test log.
- TestLog.WriteLine(WindowsIdentity.GetCurrent().Name);
- }
- }
Add Comment
Please, Sign In to add comment