public void Equals__EmployeeXIsNull_EmployeeYIsNotNull__ReturnsFalse()
        {
            var p = new ProductivityTime();

            var      comparer  = new EmployeeComparer();
            Employee employeeX = null;
            Employee employeeY = new Employee();

            var res = comparer.Equals(employeeX, employeeY);

            Assert.That(false == res);
        }
 public ProductivityTime TryModify(ProductivityTime timer)
 {
     throw new NotImplementedException();
 }
Example #3
0
        private ProductivityTime GetProductivityTimer(EmployeeActionBase employeeAction, AddTimeOptions option, ProductivityTime timer)
        {
            switch (option)
            {
            case AddTimeOptions.Continuous:

                var endTime = employeeAction.StartTime.Add(employeeAction.Duration);
                timer.Duration = endTime - timer.EndTime;
                timer.EndTime  = endTime;

                break;

            case AddTimeOptions.Duration:

                timer.Duration += employeeAction.Duration;
                timer.EndTime   = employeeAction.StartTime.Add(employeeAction.Duration);

                break;
            }

            return(timer);
        }
Example #4
0
 public ProductivityTime GetProductivityTime(ProductivityTime addingTime, ProductivityTime targetTime)
 {
     throw new NotImplementedException();
 }
Example #5
0
 public ProductivityTime TryModify(ProductivityTime timer) => timer;