using System.Collections.Generic;
using Valg.EVA.Skanning.Scan.ReadSoftContracts.Model;

namespace Valg.Eva.Skanning.Scan.Presentation.ReadSoftModel.FieldValidators
{
    public class CandidateFieldValidator : IFieldValidator
    {
        public ScannableFieldType FieldType { get { return ScannableFieldType.Candidate; } }
        public bool IsFieldValid(ScannedField field, IEnumerable<ScannedField> alreadyAddedFields)
        {
            return
                !string.IsNullOrWhiteSpace(field.Value) &&
                !field.Value.Contains("*");
        }
    }
}
