public void TestGetNonAuthenticatedPrincipal() { IIdentityProviderService provider = ApplicationServiceContext.Current.GetService <IIdentityProviderService>(); var identity = provider.GetIdentity("*****@*****.**"); Assert.AreEqual("*****@*****.**", identity.Name); Assert.IsFalse(identity.IsAuthenticated); Assert.IsNull(identity.AuthenticationType); }