Exemplo n.º 1
0
        public void GetAllCategores()
        {
            var db    = new ProcedureDatabase();
            var items = db.GetCategories().ToArray();

            Assert.AreEqual(db.Categories.Count(), items.Count());
        }
Exemplo n.º 2
0
        public void GetCategories()
        {
            var db = new ProcedureDatabase {
                Log = Console.Out
            };
            var categories = db.GetCategories();

            Assert.Equals(db.Categories.Count(), categories.Count());
        }