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(); }
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); }
public ProductivityTime GetProductivityTime(ProductivityTime addingTime, ProductivityTime targetTime) { throw new NotImplementedException(); }
public ProductivityTime TryModify(ProductivityTime timer) => timer;