public void Validate_EmployeeNumberIsMissing_Throws()
        {
            var validator = new ValidateFinanceEmployeeNumber();
            var data = new[]
            {
                new FileData { Fieldname = Constants.Field.Dept, StringValue = Constants.Department.Finance }
            };

            Assert.Throws<InvalidOperationException>(() => validator.Validate(data));
        }
        public void Validate_FinanceDepartmentEmployeeNumberNotStartsWithFIN_Throws(string employeeNumber)
        {
            var validator = new ValidateFinanceEmployeeNumber();
            var data = new[]
            {
                new FileData { Fieldname = Constants.Field.Dept, StringValue = Constants.Department.Finance },
                new FileData { Fieldname = Constants.Field.EmployeeNumber, StringValue = employeeNumber }
            };

            Assert.Throws<ArgumentException>(() => validator.Validate(data));
        }
        public void Validate_NotFinanceDepartmentEmployeeNumberStartsWithFIN_Succeeds(string department)
        {
            var validator = new ValidateFinanceEmployeeNumber();
            var data = new[]
            {
                new FileData { Fieldname = Constants.Field.Dept, StringValue = department },
                new FileData { Fieldname = Constants.Field.EmployeeNumber, StringValue = "FIN12345678" }
            };

            Assert.DoesNotThrow(() => validator.Validate(data));
        }