Exemplo n.º 1
0
        public void TestAnonymousNoParameter()
        {
            var provider          = new IdentityResolverOrchestration();
            var identityReference = provider.ResolveAnnymousIdentity();

            Assert.IsFalse(string.IsNullOrWhiteSpace(identityReference));
            Assert.AreEqual(AnonymousIdentityResolver.AnnonmousName, identityReference);
        }
Exemplo n.º 2
0
        public void TestAnonymousOverrideIdentityResolver()
        {
            var testOriginator = new CoreIdentity("overrideAnnonymous", true);

            var provider          = new IdentityResolverOrchestration();
            var identityReference = provider.ResolveAnnymousIdentity(testOriginator);

            Assert.IsFalse(string.IsNullOrWhiteSpace(identityReference));
            Assert.AreEqual(testOriginator.IdentityReference, identityReference);
        }