Exemplo n.º 1
0
 public void InitializeClientPaymentsList()
 {
     MyClientPayments = new List<Payment>();
     var client1Payments = new FakeClients1Payments().MyClients1Payments;
     foreach (var payment in client1Payments)
     {
         MyClientPayments.Add(payment);
     }
     //var client2Payments = new FakeClients2Payments().MyClients2Payments;
     //foreach (var payment in client2Payments)
     //{
     //    MyClientPayments.Add(payment);
     //}
     //var client3Payments = new FakeClients3Payments().MyClients3Payments;
     //foreach (var payment in client3Payments)
     //{
     //    MyClientPayments.Add(payment);
     //}
 }
        public global::Model.PaymentsHistory FirstClient1PaymentHistory()
        {
            Payment FirstPayment =  new FakeClients1Payments().MyClients1Payments.First();
            if (FirstPayment != null)
            {
                var Payment = new global::Model.PaymentsHistory
                {
                    PaymentHistoryId = 1,
                    InvoiceId = FirstPayment.InvoiceId,
                    PaymentDate = DateTime.Now.Date,
                    PaymentAmount = FirstPayment.PaymentAmount,
                    OrderId = (int)FirstPayment.OrderId,
                    ClientId = FirstPayment.ClientId,
                    CookerId = FirstPayment.CookerId,
                    TransactionId = "G126F85",
                    OrderModelTypeId = (int)LookUp.OrderModel.OrderModelType.Values.Transaction,
                    PaymentStatusId = (int)PaymentStatusType.Values.Completed

                };

                return Payment;
            }
            return null;
        }