Пример #1
0
        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));
        }
Пример #2
0
        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));
        }
Пример #3
0
 public TimerCalculator(ITimerAccess timerAccess, ITimeBuilder timeBuilder)
 {
     _timerAccess = timerAccess;
     _timeBuilder = timeBuilder;
 }
Пример #4
0
 public void SetUp()
 {
     _timerAccess = Substitute.For <ITimerAccess>();
     _timeBuilder = new TimeBuilder(new TimeGetter());
     _sut         = new TimerCalculator(_timerAccess, _timeBuilder);
 }