public void TestWindowsOverrideIdentityResolver() { var testOriginator = new CoreIdentity("overrideWindows", true); var provider = new IdentityResolverOrchestration(); var identityReference = provider.ResolveWindowsIdentity(testOriginator); Assert.IsFalse(string.IsNullOrWhiteSpace(identityReference)); Assert.AreEqual(testOriginator.IdentityReference, identityReference); }
public void TestWindowsNoParameter() { // impersonate a windows identity var provider = new IdentityResolverOrchestration(); var identityReference = provider.ResolveWindowsIdentity(); Assert.IsFalse(string.IsNullOrWhiteSpace(identityReference)); // Test that user is impersonated identity }