RegisterTime() public method

Register time spent on this task.
public RegisterTime ( User user, DateTime date, Sprint sprint, TimeSpan time ) : void
user User The user.
date DateTime The date.
sprint Sprint De sprint.
time TimeSpan The time.
return void
コード例 #1
0
        public void TestVerwijderTaskMetGeboekteUrenGeeftJelloScrumRepositoryException()
        {
            TimeSpan ts = new TimeSpan(25, 30, 0);

            task = Creation.TaskMetStoryAndProjectAndGebruiker();
            task.RegisterTime(task.Story.CreatedBy, 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.RegisterTime(new User(), DateTime.Now, sprint, new TimeSpan(1, 15, 10));
            task2.RegisterTime(new User(), DateTime.Now, sprint, new TimeSpan(1, 20, 10));
            task3.RegisterTime(new User(), DateTime.Now, sprint, new TimeSpan(1, 25, 10));

            sprint.CreateSprintStoryFor(story);
            sprint.CreateSprintStoryFor(story2);

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