Пример #1
0
        public void WorkTimeTest()
        {
            var target = new TaskTime
                             {
                                 WorkedFrom = DateTime.Parse("2011-07-01 12:00:00"),
                                 WorkedTo = DateTime.Parse("2011-07-02 11:45:00")
                             };

            double actual = target.WorkTime;

            Assert.AreEqual(23.75, actual, "Wrong WorkTime calculation!");
        }
Пример #2
0
 public virtual void AddHoursTask(TaskTime taskTime)
 {
     TaskTimes.Add(taskTime);
 }