public void GetAllCategores() { var db = new ProcedureDatabase(); var items = db.GetCategories().ToArray(); Assert.AreEqual(db.Categories.Count(), items.Count()); }
public void GetCategories() { var db = new ProcedureDatabase { Log = Console.Out }; var categories = db.GetCategories(); Assert.Equals(db.Categories.Count(), categories.Count()); }