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)); }
public void TestSoftwareAdviceImporter_Deserialization() { string path = Path.Combine(workingDirectory, "softwareadvice.json"); ProductImporter productImporter = new SoftwareAdviceImporter(path); List <Product> products = productImporter.Deserialize(); Assert.IsNotNull(products); }