public void GetTagTest() { Tag t = new Tag(); t.Name = tagDB.Get("Safirglas").Name; Assert.AreEqual("Safirglas", t.Name); }
// Gets a specific tag with products by name public Tag GetTagWithProducts(string name) { Tag tag = new Tag(); tag = tagDB.Get(name); // For every product in tag, builds images on product foreach (Product p in tag.Products) { p.Images = productDB.GetProductImages(p.ID); } return(tag); }