public static double GetWorkHourMultiplier(this WorkDayType workDayType)
 {
     return(workDayType switch
     {
         WorkDayType.HalfVacation => 0.5,
         WorkDayType.Workday => 1,
         WorkDayType.Undefined => 1,
         _ => 0
     });
Exemple #2
0
 public void GetWorkHourMultiplier_Gets_Multiplier(WorkDayType workDayType, double expectedResult)
 {
     _testObject.WorkDayType = workDayType;
     _testObject.GetWorkHourMultiplier().Should().Be(expectedResult);
     _testObject.WorkDayType.GetWorkHourMultiplier().Should().Be(expectedResult);
 }