Beispiel #1
0
        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);
        }
Beispiel #2
0
        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
        }