Skip to content

Instantly share code, notes, and snippets.

@dance2die

dance2die/OrdersAll.cs

Last active Mar 21, 2018
Embed
What would you like to do?
Orders, DomesticOrders, and InternationalOrders for C# Demo
private static List<Order> Orders = new List<Order>{
new Order(id: 1, quantity: 40, orderDate: new DateTime(2018, 1,1,1,1,1,1)),
new Order(id: 2, quantity: 20, orderDate: new DateTime(2018, 2,2,2,2,2,2)),
new Order(id: 3, quantity: 30, orderDate: new DateTime(2018, 3,3,3,3,3,3)),
new Order(id: 4, quantity: 10, orderDate: new DateTime(2018, 4,4,4,4,4,4)),
new Order(id: 5, quantity: 20, orderDate: new DateTime(2018, 5,5,5,5,5,5)),
};
private static List<Order> DomesticOrders = new List<Order>{
new Order(id: 1, quantity: 40, orderDate: new DateTime(2018, 1,1,1,1,1,1)),
new Order(id: 11, quantity: 20, orderDate: new DateTime(2018, 11,2,2,2,2,2)),
new Order(id: 111, quantity: 450, orderDate: new DateTime(2018, 11,1,2,2,2,2)),
new Order(id: 1111, quantity: 230, orderDate: new DateTime(2018, 11,11,2,2,2,2)),
};
private static List<Order> InternationalOrders = new List<Order>{
new Order(id: 3, quantity: 30, orderDate: new DateTime(2018, 3,3,3,3,3,3)),
new Order(id: 33, quantity: 300, orderDate: new DateTime(2018, 3,3,3,3,33,3)),
new Order(id: 4, quantity: 10, orderDate: new DateTime(2018, 4,4,4,4,4,4)),
new Order(id: 44, quantity: 100, orderDate: new DateTime(2018, 4,4,4,4,44,4)),
new Order(id: 5, quantity: 20, orderDate: new DateTime(2018, 5,5,5,5,5,5)),
new Order(id: 55, quantity: 200, orderDate: new DateTime(2018, 5,5,5,5,55,5)),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.