Fabricator(:workshop_invitation) do
  member
  attending nil
  attended nil
  tutorial { Faker::Lorem.word }
  workshop
  role 'Student'
end

Fabricator(:attending_workshop_invitation, from: :workshop_invitation) do
  attending true
  note { Faker::Lorem.word }
  tutorial { Faker::Lorem.word }
  reminded_at nil
end

Fabricator(:attended_workshop_invitation, from: :attending_workshop_invitation) do
  attended true
  workshop { Fabricate(:workshop, date_and_time: 3.days.ago) }
end

Fabricator(:student_workshop_invitation, from: :workshop_invitation) do
  role 'Student'
end

Fabricator(:coach_workshop_invitation, from: :workshop_invitation) do
  role 'Coach'
  note nil
end

Fabricator(:attended_coach, from: :workshop_invitation) do
  role 'Coach'
  attended true
  note nil
end

Fabricator(:waitinglist_invitation, from: :workshop_invitation) do
  waiting_list
  reminded_at nil
end

Fabricator(:waitinglist_invitation_reminded, from: :workshop_invitation) do
  waiting_list
  reminded_at 2.days.ago
end

Fabricator(:past_attending_workshop_invitation, from: :attending_workshop_invitation) do
  workshop { Fabricate(:workshop, date_and_time: 1.month.ago) }
end
