public void ClaimedStandardReviewMustBelongToEvidence_Valid_Succeeds()
        {
            var validator = new SolutionsExValidator(_context.Object, _logger.Object, _solutionsValidator.Object);
            var soln      = Creator.GetSolutionEx();
            var claimEv   = Creator.GetStandardsApplicableEvidence();
            var review    = Creator.GetStandardsApplicableReviews(evidenceId: claimEv.Id);

            soln.ClaimedStandardEvidence = new List <StandardsApplicableEvidence>(new[] { claimEv });
            soln.ClaimedStandardReview   = new List <StandardsApplicableReviews>(new[] { review });

            validator.ClaimedStandardReviewMustBelongToEvidence();
            var valres = validator.Validate(soln);

            valres.Errors.Should().BeEmpty();
        }
        public void ClaimedStandardReviewMustBelongToEvidence_Invalid_ReturnsError()
        {
            var validator = new SolutionsExValidator(_context.Object, _logger.Object, _solutionsValidator.Object);
            var soln      = Creator.GetSolutionEx();
            var claimEv   = Creator.GetStandardsApplicableEvidence();
            var review    = Creator.GetStandardsApplicableReviews();

            soln.ClaimedStandardEvidence = new List <StandardsApplicableEvidence>(new[] { claimEv });
            soln.ClaimedStandardReview   = new List <StandardsApplicableReviews>(new[] { review });

            validator.ClaimedStandardReviewMustBelongToEvidence();
            var valres = validator.Validate(soln);

            valres.Errors.Should()
            .Contain(x => x.ErrorMessage == "ClaimedStandardReview must belong to evidence")
            .And
            .HaveCount(1);
        }