FactoryBot.define do
	factory :fonte_por_elemento_da_subacao_da_solicitacao, class: 'Contabilidade::FontePorElementoDaSubacaoDaSolicitacao' do
		fonte_de_recursos_id {
			Base::FonteDeRecursos.find_or_create_by!(
				FactoryBot.attributes_for(:alienacao_de_bens)
			).id
		}
		elemento_por_subacao_da_solicitacao_id {
			Contabilidade::ElementoPorSubacaoDaSolicitacao.find_or_create_by!(
				FactoryBot.attributes_for(:elemento_por_subacao_da_solicitacao)
			).id
		}
	end
end