static void Main(string[] args) { myStoryService = new StoryService(GetPivotalAuthToken()); var projectsToBackup = GetProjectsToBackup(); foreach (var project in projectsToBackup) { var backupData = new BackupData(project) { Stories = myStoryService.GetAllStories(project.Id) }; backupData.SetBackupFilePath(); CreateJsonBackup(backupData); } // serialize http://james.newtonking.com/json/help/index.html }
private static void CreateJsonBackup(BackupData backupData) { using (var fs = File.OpenWrite(backupData.BackupFilePath)) { } }