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 static void ShouldCreateWithoutOptionals() { var sandboxCheckReport = new SandboxCheckReports( new List <SandboxDocumentTextDataCheck>(), new List <SandboxDocumentAuthenticityCheck>(), new List <SandboxLivenessCheck>(), new List <SandboxDocumentFaceMatchCheck>(), 10); Assert.NotNull(sandboxCheckReport.TextDataCheck); Assert.NotNull(sandboxCheckReport.DocumentAuthenticityCheck); Assert.NotNull(sandboxCheckReport.LivenessChecks); Assert.NotNull(sandboxCheckReport.DocumentFaceMatchCheck); Assert.Equal(10, sandboxCheckReport.AsyncReportDelay); Assert.Empty(sandboxCheckReport.IdDocumentComparisonChecks); Assert.Empty(sandboxCheckReport.SupplementaryDocTextDataChecks); Assert.Null(sandboxCheckReport.ThirdPartyIdentityCheck); }