public void MustBeValidClaimId_Valid_Succeeds()
        {
            var validator = new DummyEvidenceValidatorBase(_evidenceDatastore.Object, _claimDatastore.Object, _solutionDatastore.Object, _context.Object, _logger.Object);
            var evidence  = Creator.GetEvidenceBase();

            validator.MustBeValidClaimId();
            var valres = validator.Validate(evidence);

            valres.Errors.Should().BeEmpty();
        }
        public void MustBeValidClaimId_NotGuid_ReturnsError()
        {
            var validator = new DummyEvidenceValidatorBase(_evidenceDatastore.Object, _claimDatastore.Object, _solutionDatastore.Object, _context.Object, _logger.Object);
            var evidence  = Creator.GetEvidenceBase(claimId: "some other Id");

            validator.MustBeValidClaimId();
            var valres = validator.Validate(evidence);

            valres.Errors.Should()
            .ContainSingle(x => x.ErrorMessage == "Invalid ClaimId")
            .And
            .HaveCount(1);
        }
        public void MustBeValidClaimId_Null_ReturnsError()
        {
            var validator = new DummyEvidenceValidatorBase(_evidenceDatastore.Object, _claimDatastore.Object, _solutionDatastore.Object, _context.Object, _logger.Object);
            var evidence  = Creator.GetEvidenceBase();

            evidence.ClaimId = null;

            validator.MustBeValidClaimId();
            var valres = validator.Validate(evidence);

            valres.Errors.Should()
            .ContainSingle(x => x.ErrorMessage == "Invalid ClaimId")
            .And
            .ContainSingle(x => x.ErrorMessage == "'Claim Id' must not be empty.")
            .And
            .HaveCount(2);
        }