public static IntegrationTests.CustomerOrder DbOrderUpdateStatus(IntegrationTests.CustomerOrder order, IntegrationTests.OrderStatus newStatus) { order.Status = newStatus; order.OrderItems = null; return(order); }
public void TestDelete() { IntegrationTests.CustomerOrder order = DbCreateOrder(); using (var audit = AuditScope.Create("Order:Delete", () => order, new { ReferenceId = order.OrderId })) { DbDeteleOrder(order.OrderId); order = null; } }
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); }
public static void ExecuteStoredProcedure(IntegrationTests.CustomerOrder order, IntegrationTests.OrderStatus status) { }