コード例 #1
0
        public void AuthenticityChecksShouldFilterChecks()
        {
            var getSessionResult = new GetSessionResult
            {
                Checks = new List <CheckResponse>
                {
                    new AuthenticityCheckResponse(),
                    new FaceMatchCheckResponse()
                }
            };

            Assert.AreEqual(1, getSessionResult.GetAuthenticityChecks().Count);
            Assert.IsInstanceOfType(getSessionResult.GetAuthenticityChecks().First(), typeof(AuthenticityCheckResponse));
        }
コード例 #2
0
        public void AuthenticityChecksShouldReturnEmptyCollectionWhenNoneOfTypeArePresent()
        {
            var getSessionResult = new GetSessionResult
            {
                Checks = new List <CheckResponse>
                {
                    new FaceMatchCheckResponse()
                }
            };

            Assert.AreEqual(0, getSessionResult.GetAuthenticityChecks().Count);
        }
コード例 #3
0
        public void ChecksShouldReturnEmptyListWhenNotPresent()
        {
            var getSessionResult = new GetSessionResult();

            Assert.AreEqual(0, getSessionResult.GetAuthenticityChecks().Count);
            Assert.AreEqual(0, getSessionResult.GetFaceMatchChecks().Count);
            Assert.AreEqual(0, getSessionResult.GetIdDocumentComparisonChecks().Count);
            Assert.AreEqual(0, getSessionResult.GetLivenessChecks().Count);
#pragma warning disable CS0618 // Type or member is obsolete
            Assert.AreEqual(0, getSessionResult.GetTextDataChecks().Count);
#pragma warning restore CS0618 // Type or member is obsolete
            Assert.AreEqual(0, getSessionResult.GetIdDocumentTextDataChecks().Count);
            Assert.AreEqual(0, getSessionResult.GetSupplementaryDocTextDataChecks().Count);
            Assert.AreEqual(0, getSessionResult.GetThirdPartyIdentityFraudOneChecks().Count);
            Assert.AreEqual(0, getSessionResult.GetThirdPartyIdentityChecks().Count);
            Assert.AreEqual(0, getSessionResult.GetWatchlistScreeningChecks().Count);
            Assert.AreEqual(0, getSessionResult.GetWatchlistAdvancedCaChecks().Count);
        }