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;
using Valg.EVA.Skanning.ServicesModel.Internal.SystemSettings;

namespace Valg.EVA.Skanning.Scan.Presentation.ReadSoftModel.FieldValidators
{
    public class AffiliationNameFieldValidator : IFieldValidator
    {
        public ScannableFieldType FieldType => ScannableFieldType.AffiliationName;

        public bool IsFieldValid(ScannedField field, IEnumerable<ScannedField> alreadyAddedFields)
        {
            return !String.IsNullOrEmpty(field.Value);
        }
    }
}

