Beispiel #1
0
        public void PassProductCatalogInitTest()
        {
            try
            {
                CreateProductCatalogFile(CreateProductCatalog());
                var dataContext = new JSonFileDataContext(productCatalogPath, knownTypes);

                var productCatalog = new ProductCatalog(dataContext);

                productCatalog.LoadCatalog();

                Assert.IsNotNull(productCatalog);
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.ToString());
            }
        }