Пример #1
0
        public void GetTagTest()
        {
            Tag t = new Tag();

            t.Name = tagDB.Get("Safirglas").Name;

            Assert.AreEqual("Safirglas", t.Name);
        }
Пример #2
0
        // 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);
        }