FactoryBot.define do
  factory :contabilidade_pagamento_do_lote_bancario, class: 'Contabilidade::PagamentoDoLoteBancario' do
    lote_bancario_id { Contabilidade::LoteBancario.find_or_create_by!( FactoryBot.attributes_for( :contabilidade_lote_bancario ) ).id }
    conta_bancaria_por_pagamento_id { Base::ContaBancariaPorPagamento.find_or_create_by!( FactoryBot.attributes_for(:conta_bancaria_por_pagamento) ).id }
  end
end
