Пример #1
0
        public void TestVerwijderTaskMetGeboekteUrenGeeftJelloScrumRepositoryException()
        {
            TimeSpan ts = new TimeSpan(25, 30, 0);

            task = Creation.TaskMetStoryAndProjectAndGebruiker();
            task.MaakTijdRegistratie(task.Story.AangemaaktDoor, DateTime.Now, Creation.Sprint(task.Story.Project), new TimeSpan(8, 0, 0));
            taskRepository.Save(task);
               // UnitOfWork.CurrentSession.Clear();
            taskRepository.Delete(task);
            Assert.Fail();
        }
Пример #2
0
        public void TestBerekenTotaalBestedeTijdAanSprintStories()
        {
            task3 = new Task(story2);

            task.MaakTijdRegistratie(new Gebruiker(), DateTime.Now, sprint, new TimeSpan(1, 15, 10));
            task2.MaakTijdRegistratie(new Gebruiker(), DateTime.Now, sprint, new TimeSpan(1, 20, 10));
            task3.MaakTijdRegistratie(new Gebruiker(), DateTime.Now, sprint, new TimeSpan(1, 25, 10));

            sprint.MaakSprintStoryVoor(story);
            sprint.MaakSprintStoryVoor(story2);

            Assert.AreEqual(new TimeSpan(4, 0, 30), sprint.TotaalBestedeTijd());
        }