public void TestDAOForOrderGetByClient()
        {
            IOrderRepository order = new DummyDAOForOrder();

            CollectionAssert.AreEqual(new List <Order> {
                Storage.Orders[0]
            }, order.GetByClient(Storage.Clients[0]));
        }
        public void TestDAOForOrderGetBy()
        {
            IOrderRepository order = new DummyDAOForOrder();

            CollectionAssert.AreEqual(new List <Order> {
                Storage.Orders[0], Storage.Orders[2]
            }, order.GetBy(null, Status.Opened, null));
            //CollectionAssert.AreEqual(new List<Order> { Storage.Orders[0], Storage.Orders[1] }, order.GetBy("a4325", Status.PaidUp));
        }
 public void TestDAOForOrderGetByClient()
 {
     IOrderRepository order = new DummyDAOForOrder();
     CollectionAssert.AreEqual(new List<Order> { Storage.Orders[0] },order.GetByClient(Storage.Clients[0]));
 }
 public void TestDAOForOrderGetBy()
 {
     IOrderRepository order = new DummyDAOForOrder();
     CollectionAssert.AreEqual(new List<Order> { Storage.Orders[0], Storage.Orders[2] }, order.GetBy(null, Status.Opened, null));
     //CollectionAssert.AreEqual(new List<Order> { Storage.Orders[0], Storage.Orders[1] }, order.GetBy("a4325", Status.PaidUp));
 }