public WorkSiteValidatorRenewal(IAddressValidatorNoCounty addressValidatorNoCounty, IEmployeeValidator employeeValidator)
            : base(addressValidatorNoCounty)
        {
            RuleFor(w => w.NumEmployees).NotNull();
            RuleFor(w => w.Employees).NotNull().SetCollectionValidator(employeeValidator);

            RuleFor(w => w.Employees.Count).Equal(w => w.NumEmployees.GetValueOrDefault()).When(w => w.Employees != null);
        }
 public WorkSiteValidatorInitial(IAddressValidatorNoCounty addressValidatorNoCounty)
 {
     RuleFor(w => w.WorkSiteTypeId).NotNull().InclusiveBetween(ResponseIds.WorkSiteType.MainEstablishment, ResponseIds.WorkSiteType.SWEP);
     RuleFor(w => w.Name).NotEmpty();
     RuleFor(w => w.Address).NotNull().SetValidator(addressValidatorNoCounty);
     RuleFor(w => w.SCA).NotNull();
     RuleFor(w => w.FederalContractWorkPerformed).NotNull();
 }
 public SourceEmployerValidator(IAddressValidatorNoCounty addressValidatorNoCounty)
 {
     RuleFor(s => s.EmployerName).NotEmpty();
     RuleFor(s => s.Address).NotNull().SetValidator(addressValidatorNoCounty);
     RuleFor(s => s.Phone).NotEmpty();
     RuleFor(s => s.ContactName).NotEmpty();
     RuleFor(s => s.ContactTitle).NotEmpty();
     RuleFor(s => s.ContactDate).NotEmpty();
     RuleFor(s => s.JobDescription).NotEmpty();
     RuleFor(s => s.ExperiencedWorkerWageProvided).NotEmpty();
     RuleFor(s => s.ConclusionWageRateNotBasedOnEntry).NotEmpty();
 }