public void VerifyToysType() { var model = new StoreBLL(); var result = model.GetToys(); var expected = typeof(List <Toy>); Assert.IsType <List <Toy> > (result); Assert.IsType(expected, result); }
static public void ShowResult(int k) { try { StoreBLL logicObj = new StoreBLL(); ShowInfo show = new ShowInfo(); switch (k) { case 1: show.ShowToys(logicObj.GetToys()); break; case 2: show.ShowOrders(logicObj.GetOrders()); break; case 3: show.ShowCustomers(logicObj.GetCustomers()); break; case 4: show.ShowOrdersInfo(logicObj.GetOrdersInfo()); break; case 5: show.ShowSoldToys(logicObj.GetSoldToys()); break; case 6: show.ShowCustomersExpenses(logicObj.GetCustomersExpenses()); break; case 7: Environment.Exit(0); break; default: System.Console.WriteLine("Please, press 1-7."); break; } } catch { System.Console.WriteLine("Something wrong"); } }