Beispiel #1
0
        public void SaveGoalList()
        {
            var repository = new GoalRepository(GetTestFileFolder());
            var goalList   = repository.GetGoalList($"goals.json");

            goalList.Add(new GoalListItem {
                Id = "8D642D0F-9CE1-4CF9-8CA6-828DFA25214E", PercentComplete = 99, Title = "Added Goal"
            });

            repository.SaveGoalList(goalList, $"saved_goals.json");

            var goalListNew = repository.GetGoalList($"saved_goals.json");
        }