public ChartController(ITimerAccess timerAccess, ITimeBuilder timeBuilder, ITimeGetter timeGetter, IRequestReader requestReader, ITimerCalculator timerCalculator) { _timerAccess = timerAccess; _timeBuilder = timeBuilder; _timeGetter = timeGetter; _requestReader = requestReader; _timerCalculator = timerCalculator; _timeZoneInfo = _timeBuilder.GetTimeZoneInfo(_requestReader.Read(TypeScript.HttpHeaders.Request.CurrentTimeZone)); }
public TimerController(ITimerAccess timerAccess, IRequestReader requestReader, ITimeBuilder timeBuilder, ITimerCalculator timerCalculator, IOvertimeAccess overtimeAccess) { _timerAccess = timerAccess; _requestReader = requestReader; _timeBuilder = timeBuilder; _timerCalculator = timerCalculator; _overtimeAccess = overtimeAccess; _timeZoneInfo = _timeBuilder.GetTimeZoneInfo(_requestReader.Read(HttpHeaders.Request.CurrentTimeZone)); }
public TimerCalculator(ITimerAccess timerAccess, ITimeBuilder timeBuilder) { _timerAccess = timerAccess; _timeBuilder = timeBuilder; }
public void SetUp() { _timerAccess = Substitute.For <ITimerAccess>(); _timeBuilder = new TimeBuilder(new TimeGetter()); _sut = new TimerCalculator(_timerAccess, _timeBuilder); }