FactoryBot.define do
  factory :library_bib, class: 'Library::Bib' do
    association :school
    association :item_type, factory: :library_item_type
    association :publisher, factory: :library_publisher

    title { Faker::Book.title }
    subtitle { Faker::Book.title }
    published_on { Faker::Number.between(from: 1600, to: 2020) }
    isbn10 { Faker::Number.number(digits: 10) }
    isbn13 { Faker::Number.number(digits: 13) }
    summary { Faker::Lorem.paragraph }
    page_count { Faker::Number.number(digits: 3) }
  end
end
