public void NotIsVippsIdentityForUnknownIssuer()
        {
            var service = new VippsLoginService();

            var identity = new ClaimsIdentity();

            identity.AddClaim(new Claim(JwtClaimTypes.Issuer, "unknown"));
            Assert.False(service.IsVippsIdentity(identity));
        }
        public void IsVippsIdentityForVippsIssuer()
        {
            var service = new VippsLoginService();

            var identity = new ClaimsIdentity();

            identity.AddClaim(new Claim(JwtClaimTypes.Issuer, VippsLoginService.VippsTestApi));
            Assert.True(service.IsVippsIdentity(identity));
        }
        public void ValidateVippsIdentity()
        {
            var service = new VippsLoginService();

            Assert.True(service.IsVippsIdentity(CreateIdentity()));
        }
        public void NotIsVippsIdentityForNullIdentity()
        {
            var service = new VippsLoginService();

            Assert.False(service.IsVippsIdentity(null));
        }