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"); }
public void GetGoalList() { var repository = new GoalRepository(GetTestFileFolder()); var goalList = repository.GetGoalList($"goals.json"); Assert.Equal(6, goalList.Count); }
public void TestMethod1() { var list = goal.GetGoalList(1); Assert.IsNotNull(list); }