Exemple #1
0
        public static void ShouldCreateWithAllArgs()
        {
            var recommendation = new SandboxRecommendation("someValue", "someReason", "someRecoverySuggestion");
            var sandboxThirdPartyIdentityCheck = new SandboxThirdPartyIdentityCheckBuilder()
                                                 .WithRecommendation(recommendation)
                                                 .Build();

            var sandboxCheckReport = new SandboxCheckReports(
                new List <SandboxDocumentTextDataCheck>(),
                new List <SandboxDocumentAuthenticityCheck>(),
                new List <SandboxLivenessCheck>(),
                new List <SandboxDocumentFaceMatchCheck>(),
                10,
                new List <SandboxIdDocumentComparisonCheck>(),
                new List <SandboxSupplementaryDocTextDataCheck>(),
                sandboxThirdPartyIdentityCheck);

            Assert.NotNull(sandboxCheckReport.TextDataCheck);
            Assert.NotNull(sandboxCheckReport.DocumentAuthenticityCheck);
            Assert.NotNull(sandboxCheckReport.LivenessChecks);
            Assert.NotNull(sandboxCheckReport.DocumentFaceMatchCheck);
            Assert.Equal(10, sandboxCheckReport.AsyncReportDelay);
            Assert.NotNull(sandboxCheckReport.IdDocumentComparisonChecks);
            Assert.NotNull(sandboxCheckReport.SupplementaryDocTextDataChecks);
            Assert.NotNull(sandboxCheckReport.ThirdPartyIdentityCheck);
        }
        public void ShouldBuildWithRecommendation()
        {
            string someValue              = "someValue";
            string someReason             = "someReason";
            string someRecoverySuggestion = "someRecoverySuggestion";

            var recommendation = new SandboxRecommendation(someValue, someReason, someRecoverySuggestion);

            var check = new SandboxZoomLivenessCheckBuilder()
                        .WithBreakdown(_someBreakdown)
                        .WithRecommendation(recommendation)
                        .Build();

            var result = check.Result.Report.Recommendation;

            Assert.Equal(someValue, result.Value);
            Assert.Equal(someReason, result.Reason);
            Assert.Equal(someRecoverySuggestion, result.RecoverySuggestion);
        }
Exemple #3
0
 public SandboxCheckReport(SandboxRecommendation recommendation, List <SandboxBreakdown> breakdown)
 {
     Recommendation = recommendation;
     Breakdown      = breakdown;
 }
Exemple #4
0
 public TBuilder WithRecommendation(SandboxRecommendation recommendation)
 {
     Recommendation = recommendation;
     return((TBuilder)this);
 }