public static FakeOrderAddress CreateEmptyOrderAddress() { var orderAddress = new FakeOrderAddress { }; return(orderAddress); }
public static FakeShipment CreateShipment() { var shipment = new FakeShipment { ShipmentId = ++_counter, ShippingMethodId = Guid.Parse("0b4a4792-10d8-497f-8dc1-379be7f85531"), ShippingMethodName = "Express-USD", OrderShipmentStatus = OrderShipmentStatus.AwaitingInventory, ShipmentTrackingNumber = "12345", ShippingAddress = FakeOrderAddress.CreateOrderAddress(), LineItems = new[] { FakeLineItem.CreateLineItem() }, }; return(shipment); }
public static FakePayment CreatePayment() { var payment = new FakePayment { PaymentId = ++_counter, PaymentMethodId = Guid.Parse("ef6a5e4a-de87-4749-bd26-38c41badee6a"), PaymentMethodName = "GenericCreditCard", TransactionType = "Authorization", Amount = 50, CustomerName = "Cruz Graham", ImplementationClass = "Mediachase.Commerce.Orders.CreditCardPayment,Mediachase.Commerce", Status = "Processed", BillingAddress = FakeOrderAddress.CreateOrderAddress(), AuthorizationCode = "12345", TransactionID = "54321", ValidationCode = "09876543" }; return(payment); }
public static FakeOrderAddress CreateOrderAddress() { var orderAddress = new FakeOrderAddress { Id = "Order address 1", FirstName = "Cruz", LastName = "Graham", Line1 = "Kungsgatan 446 ", Line2 = "", PostalCode = "12345", City = "Gävle", CountryCode = "SWE", CountryName = "Sweden", Email = "*****@*****.**", DaytimePhoneNumber = "0123456789", EveningPhoneNumber = "0987654321", RegionCode = "", RegionName = "Gästrikland", Organization = "Brav" }; return(orderAddress); }
public IOrderAddress CreateOrderAddress(IOrderGroup orderGroup) { return(FakeOrderAddress.CreateEmptyOrderAddress()); }