AnujBank.PaymentInstructionService.Generate C# (CSharp) Метод

Generate() публичный Метод

public Generate ( Payment payment ) : void
payment Payment
Результат void
        public void Generate(Payment payment)
        {
            CreateOutPutDirectoryIfDoesNotExist();
            CreateOutputXml(payment);
        }

Usage Example

Пример #1
0
        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))
                                );
        }