public static string Hour1RowToString(this HourRow1 value)
        {
            var output = (char)value.Field1 + ((char)value.Field2).ToString()
                         + (char)value.Field3 + (char)value.Field4;

            return(output);
        }
        public HourRow1 Convert(int hour)
        {
            var hourDivided = hour / HoursDivider;

            var h5Passed  = hourDivided > 0;
            var h10Passed = hourDivided > 1;
            var h15Passed = hourDivided > 2;
            var h20Passed = hourDivided > 3;

            var firstRow = new HourRow1
            {
                Field1 = h5Passed ? RedLightEnum.Active : RedLightEnum.InActive,
                Field2 = h10Passed ? RedLightEnum.Active : RedLightEnum.InActive,
                Field3 = h15Passed ? RedLightEnum.Active : RedLightEnum.InActive,
                Field4 = h20Passed ? RedLightEnum.Active : RedLightEnum.InActive
            };

            return(firstRow);
        }