Пример #1
0
 public static IntegrationTests.CustomerOrder DbOrderUpdateStatus(IntegrationTests.CustomerOrder order,
                                                                  IntegrationTests.OrderStatus newStatus)
 {
     order.Status     = newStatus;
     order.OrderItems = null;
     return(order);
 }
Пример #2
0
            public void TestDelete()
            {
                IntegrationTests.CustomerOrder order = DbCreateOrder();

                using (var audit = AuditScope.Create("Order:Delete", () => order, new { ReferenceId = order.OrderId }))
                {
                    DbDeteleOrder(order.OrderId);
                    order = null;
                }
            }
Пример #3
0
            public static IntegrationTests.CustomerOrder DbCreateOrder()
            {
                var order = new IntegrationTests.CustomerOrder()
                {
                    OrderId    = Guid.NewGuid().ToString(),
                    CustomerId = "customer 123 some 'quotes' to test's. double ''. some double \"quotes\" \"",
                    Status     = IntegrationTests.OrderStatus.Created,
                    OrderItems = new List <IntegrationTests.CustomerOrderItem>()
                    {
                        new IntegrationTests.CustomerOrderItem()
                        {
                            Sku      = "1002",
                            Quantity = 3
                        }
                    }
                };

                return(order);
            }
Пример #4
0
 public static void ExecuteStoredProcedure(IntegrationTests.CustomerOrder order, IntegrationTests.OrderStatus status)
 {
 }