using static System.Console;
using System.Collections.Generic;
public static void Main() {
var lista = CriarCompras(10);
foreach (var item in lista) {
private static List<Compra> CriarCompras(int numComprasParaGerar) {
return new int[numComprasParaGerar].Select(i => new Compra()).ToList();