Example #1
0
        protected EmployGuidesBuilder(BundleVersion version,
                                      TDays weeklyWorkingDays, THours dailyWorkingHours) : base(version)
        {
            __WeeklyWorkingDays = weeklyWorkingDays;

            __DailyWorkingHours = dailyWorkingHours;
        }
Example #2
0
        public EmployGuides(Period period, TDays weeklyWorkingDays, THours dailyWorkingHours)
        {
            InternalPeriod = period;

            __WeeklyWorkingDays = weeklyWorkingDays;

            __DailyWorkingHours = dailyWorkingHours;
        }
        public static int WorkingSecondsWeekly(TDays workingDays, THours workingHours)
        {
            TSeconds secondsDaily = WorkingSecondsDaily(workingHours);

            return(workingDays * secondsDaily);
        }
        public static int WorkingSecondsDaily(THours workingHours)
        {
            TSeconds secondsInHour = (TIME_MULTIPLY_SIXTY * TIME_MULTIPLY_SIXTY);

            return(workingHours * secondsInHour);
        }