FactoryBot.define do
  factory :subscription, class: 'Lightstreamer::Subscription' do
    session { nil }
    items { [] }
    fields { [] }
    mode { :merge }
    data_adapter { nil }
    maximum_update_frequency { nil }
    selector { nil }

    initialize_with do
      new session, items: items, fields: fields, mode: mode, data_adapter: data_adapter, selector: selector,
                   maximum_update_frequency: maximum_update_frequency
    end
  end
end
