Exemplo n.º 1
0
        public void LoadGoalTasksFromTaskReferences()
        {
            var repository = new GoalRepository(GetTestFileFolder());
            var goal       = repository.GetGoal("8D642D0F-9CE1-4CF9-8CA6-828DFA25214E");
            var tasks      = repository.GetTasks(goal.TaskReferences);

            Assert.Equal(2, tasks.Count);
            Assert.Equal("290D51D0-6918-41CE-9734-8EA7870DB218", tasks[1].Id);
            Assert.Equal("Highway to Hell - Lick 2", tasks[1].Title);
            Assert.Equal(0, tasks[1].Initial);
            Assert.Equal(100, tasks[1].Target);
            Assert.Equal(3, tasks[1].Activity.Count);
            Assert.Equal(DateTime.Parse("2019-05-04"), tasks[1].Activity[0].Date);
            Assert.Equal(33.33, tasks[1].Activity[0].Value);
        }