Пример #1
0
        private static LampRow GenerateLine(int timeUnit, LampRow lampRow, IRowRule rowRule)
        {
            for (var index = 0; index < lampRow.Lamps.Length; index++)
            {
                lampRow.Lamps[index] = rowRule.Rule(timeUnit, index);
            }

            return(lampRow);
        }
Пример #2
0
 public BottomHoursRuleTests()
 {
     _itemUnderTest = new BottomHoursRowRule();
 }
 public TopSecondsRowRuleTestsTests()
 {
     _itemUnderTest = new TopSecondsRowRowRule();
 }