using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Valg.Eva.Skanning.Scan.Presentation.ReadSoftModel.FieldValidators;
using Valg.EVA.Skanning.Scan.ReadSoftContracts.Model;

namespace Valg.EVA.Skanning.Scan.Presentation.ReadSoftModel.FieldValidators
{
    public class ContestNameFieldValidator : IFieldValidator
    {
        public ScannableFieldType FieldType => ScannableFieldType.ContestName;
        public bool IsFieldValid(ScannedField field, IEnumerable<ScannedField> alreadyAddedFields)
        {
            return !String.IsNullOrEmpty(field.Value);
        }
    }
}

