public void ClaimedCapabilityEvidencePreviousVersionMustBelongToSolution_Valid_Succeeds()
        {
            var validator = new SolutionsExValidator(_context.Object, _logger.Object, _solutionsValidator.Object);
            var soln      = Creator.GetSolutionEx();
            var claimEv1  = Creator.GetCapabilitiesImplementedEvidence();
            var claimEv2  = Creator.GetCapabilitiesImplementedEvidence(prevId: claimEv1.Id);

            soln.ClaimedCapabilityEvidence = new List <CapabilitiesImplementedEvidence>(new[] { claimEv1, claimEv2 });

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

            valres.Errors.Should().BeEmpty();
        }
        public void ClaimedCapabilityEvidencePreviousVersionMustBelongToSolution_Invalid_ReturnsError()
        {
            var validator = new SolutionsExValidator(_context.Object, _logger.Object, _solutionsValidator.Object);
            var soln      = Creator.GetSolutionEx();
            var claimEv1  = Creator.GetCapabilitiesImplementedEvidence();
            var claimEv2  = Creator.GetCapabilitiesImplementedEvidence(prevId: Guid.NewGuid().ToString());

            soln.ClaimedCapabilityEvidence = new List <CapabilitiesImplementedEvidence>(new[] { claimEv1, claimEv2 });

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

            valres.Errors.Should()
            .Contain(x => x.ErrorMessage == "ClaimedCapabilityEvidence previous version must belong to solution")
            .And
            .HaveCount(1);
        }