db/test_seeders/record_builder.rb
def build_record
    gender ||= payroll_gender
    Struct::DataRecord.new(
      gender == :male ? "M" : "F",
      [first_name(gender), surname].join(" "),
      dob,
      rand(1000000..9999999).to_s,
      nino,
      qualification,
      subject,
      "2018-2019"
    )
  end
# As payroll testing is for 2021/2022 AY,
# have used 2018-2019 and Mathematics
# as this was the valid cohort for ECP
As payroll testing is for 2021/2022 AY,
have used 2018-2019 and Mathematics
as this was the valid cohort for ECP
As payroll testing is for 2021 / 2022 AY have used 2018 - 2019 and Mathematics as this was the valid cohort for ECP
def build_record
    gender ||= payroll_gender
    Struct::DataRecord.new(
      gender == :male ? "M" : "F",
      [first_name(gender), surname].join(" "),
      dob,
      rand(1000000..9999999).to_s,
      nino,
      qualification,
      subject,
      "2018-2019"
    )
  end
def build_record gender ||= payroll_gender Struct :: DataRecord . new ( gender == :male ? "M" : "F" , [ first_name ( gender ) , surname ] . join ( " " ) , dob , rand ( 1000000 .. 9999999 ) . to_s , nino , qualification , subject , "2018-2019" ) end
As payroll testing is for 2021/2022 AY,
have used 2018-2019 and Mathematics
as this was the valid cohort for ECP
As payroll testing is for 2021 / 2022 AY have used 2018 - 2019 and Mathematics as this was the valid cohort for ECP