Пример #1
0
        public void TestSoftwareAdviceImporter_PersistData()
        {
            string          path            = Path.Combine(workingDirectory, "softwareadvice.json");
            ProductImporter productImporter = new SoftwareAdviceImporter(path);
            List <Product>  products        = productImporter.Deserialize();

            Assert.IsTrue(productImporter.PersistData(products));
        }
Пример #2
0
        public void TestSoftwareAdviceImporter_Deserialization()
        {
            string          path            = Path.Combine(workingDirectory, "softwareadvice.json");
            ProductImporter productImporter = new SoftwareAdviceImporter(path);
            List <Product>  products        = productImporter.Deserialize();

            Assert.IsNotNull(products);
        }