public void SelectAllOrders() { Bus.Orders orders = new Bus.Orders(); SortedDictionary <System.Guid, GenesisBusiness.Order> dict = orders.SelectAll(); if (dict == null || dict.Count == 0) { Assert.Fail("No Orders returned"); } }
public Orders(GenesisBusiness.Orders busOrders) { this.Dictionary = new SortedDictionary <Guid, Order>(); foreach (GenesisBusiness.Order busOrder in busOrders.Dictionary.Values) { Order order = new Order(busOrder); order.Parent = this; this.Dictionary.Add(order.OrderId, order); } }
public object GetData() { StartProgressTimer(); var busOrders = new Business.Orders(); busOrders.SelectAll(); var grdOrders = new Grids.Orders(busOrders); return(grdOrders.Dictionary.Values); }