public BerlinClock(IRowGenerator topFirstRow, IRowGenerator topSecondRow, IRowGenerator bottomFirstRow, IRowGenerator bottomSecondRow, IRowGenerator lampGenerator) { _topFirstRow = topFirstRow; _topSecondRow = topSecondRow; _bottomFirstRow = bottomFirstRow; _bottomSecondRow = bottomSecondRow; _lampGenerator = lampGenerator; _hourBiggestFit = new ValueBiggestFit(new List<int>{5, 10, 15, 20}); _minuteBiggestFit = new ValueBiggestFit(new List<int>{5, 10, 15, 20, 25, 30, 35, 40, 35, 50 ,55}); }
public void ShouldReturnTheCorrectBiggestFit(int value, int expectedValue) { var calculator = new ValueBiggestFit(new List<int> { 5, 10, 15, 20 }); var result = calculator.GetFit(value); Assert.That(result, Is.EqualTo(expectedValue)); }
public BerlinClock(IRowGenerator topFirstRow, IRowGenerator topSecondRow, IRowGenerator bottomFirstRow, IRowGenerator bottomSecondRow, IRowGenerator lampGenerator) { _topFirstRow = topFirstRow; _topSecondRow = topSecondRow; _bottomFirstRow = bottomFirstRow; _bottomSecondRow = bottomSecondRow; _lampGenerator = lampGenerator; _hourBiggestFit = new ValueBiggestFit(new List <int> { 5, 10, 15, 20 }); _minuteBiggestFit = new ValueBiggestFit(new List <int> { 5, 10, 15, 20, 25, 30, 35, 40, 35, 50, 55 }); }