public void FindAgeOverVerificationShouldReturnNullForNoMatch()
        {
            var mockBaseProfile = new Mock <IBaseProfile>();

            mockBaseProfile.Setup(
                x => x.FindAttributesStartingWith <string>(It.IsAny <string>()))
            .Returns(_emptyAttributeStringList);
            var yotiProfile = new YotiProfile(mockBaseProfile.Object);

            AgeVerification result = yotiProfile.FindAgeOverVerification(18);

            Assert.IsNull(result);
        }
        public void FindAgeUnderVerificationShouldReturnCorrectResult()
        {
            int age = 21;

            var mockBaseProfile = new Mock <IBaseProfile>();

            mockBaseProfile.Setup(
                x => x.FindAttributesStartingWith <string>(Constants.UserProfile.AgeOverAttribute))
            .Returns(_emptyAttributeStringList);
            mockBaseProfile.Setup(
                x => x.FindAttributesStartingWith <string>(Constants.UserProfile.AgeUnderAttribute))
            .Returns(new List <YotiAttribute <string> > {
                _ageUnder21Attribute
            });
            var yotiProfile = new YotiProfile(mockBaseProfile.Object);

            AgeVerification ageUnderVerification = yotiProfile.FindAgeUnderVerification(age);

            Assert.AreEqual(true, ageUnderVerification.Result());
            Assert.AreEqual(age, ageUnderVerification.Age());
            Assert.AreEqual(Constants.UserProfile.AgeUnderAttribute, ageUnderVerification.CheckType());
            Assert.AreEqual(_ageUnder21Attribute, ageUnderVerification.Attribute());
        }