/// <summary>
 /// Constructor for positive verifications
 /// </summary>
 public VerificationResult(PositiveTestResult testresult,
                           IEnumerable <VerificationRecord> priorVerifications,
                           IVerificationLimit verificationLimit)
 {
     _testresult = testresult.Some();
     VerificationLimitExceeded = verificationLimit.HasReachedLimit(priorVerifications);
     VerificationLimitConfig   = verificationLimit.Config.Some();
 }
Example #2
0
 public PositiveUser(string provider, string providerUserId, PositiveTestResult testresult, IEnumerable <VerificationRecord> existingVerificationRecords, IVerificationLimit verificationLimit) : base(provider, providerUserId)
 {
     PositiveTestDate          = testresult.PositiveTestDate;
     VerificationLimitExceeded = verificationLimit.HasExceededLimit(existingVerificationRecords);
     VerificationLimitConfig   = verificationLimit.Config.Some();
 }