예제 #1
0
        public static FakeOrderAddress CreateEmptyOrderAddress()
        {
            var orderAddress = new FakeOrderAddress
            {
            };

            return(orderAddress);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
 public IOrderAddress CreateOrderAddress(IOrderGroup orderGroup)
 {
     return(FakeOrderAddress.CreateEmptyOrderAddress());
 }