Example #1
0
        public void BeAbleToReturnAUserControl()
        {
            JSONProductImporter importer = new JSONProductImporter();

            UserControl importerUserControl = importer.GetUIForNeededAttributes();

            Assert.IsNotNull(importerUserControl);
        }
Example #2
0
        public void BeAbleToReturnImportedProducts()
        {
            JSONProductImporter importer = new JSONProductImporter();

            ICollection <Product> testProducts = importer.ImportProducts("products.json");

            Assert.IsNotNull(testProducts);
            Assert.IsTrue(testProducts.Count == 1);
        }