示例#1
0
        public void TestLoadFile()
        {
            string fake = "fake";

            var fm = new OrderRepository();

            List<Order> actual = fm.LoadOrdersFromFile(fake);
            Assert.IsTrue(actual !=null);
        }
示例#2
0
 public List<Order> GetTodaysOrders()
 {
     var p = new OrderRepository();
     return p.LoadOrdersFromFile(_filename);
 }
 private void GetListOfOrdersByDate(string currentFile)
 {
     var p = new OrderRepository();
     Orders = p.LoadOrdersFromFile(currentFile);
 }