public void Setup() { _storagePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); _poiService = new POIJsonService(_storagePath); foreach (var filename in Directory.EnumerateFiles(_storagePath, "*.json")) { File.Delete(filename); } }
public void Setup() { string storagePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); _poiService = new POIJsonService(storagePath); // clear any existing json files foreach (string filename in Directory.EnumerateFiles(storagePath, "*.json")) { File.Delete(filename); } }
public void Setup() { ///data/data/POITestApp.POITestApp/files/ string storagePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); //Initialize the private variable to an instance of POIJsonService _poiService = new POIJsonService(storagePath); // clear any existing json files foreach (string filename in Directory.EnumerateFiles(storagePath, "*.json")) { File.Delete(filename); } }