public void GeneratePaymentInstruction() { Dictionary <Account, double> allocatedAmounts = GetAllocation(); allocations.ForEach(al => paymentInstructionService.Generate(new Payment(al.GetAccountNumber().ToString(), new decimal(allocatedAmounts[al.GetAccount()]), DateTime.Now)) ); }