Exemplo n.º 1
0
        public void HccApp_CanAddSampleProductsToStore()
        {
            using (ShimsContext.Create())
            {
                InitShims();

                var target = CreateHccAppInMemory(false);
                SampleData.AddSampleProductsToStore();

                var totalCount = target.CatalogServices.Products.CountOfAll();
                Assert.AreEqual(6, totalCount, "Six Products should have been created.");
                var cats = target.CatalogServices.Categories.FindAll();
                Assert.IsNotNull(cats);
                Assert.AreEqual(3, cats.Count, "Four categories should have been created!");
            }
        }
Exemplo n.º 2
0
 public void AddSampleProductsToStore()
 {
     SampleData.AddSampleProductsToStore();
 }