public void Setup() { _fixture = new Fixture(); _timeBuilder = Substitute.For <ITimeBuilder>(); _context = new JobTimerDbContext(); _sut = new TimerAccess(_context, _timeBuilder); }
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 TimerAccess(JobTimerDbContext context, ITimeBuilder timeBuilder) : base(context) { _timeBuilder = timeBuilder; }
public void SetUp() { _timerAccess = Substitute.For <ITimerAccess>(); _timeBuilder = new TimeBuilder(new TimeGetter()); _sut = new TimerCalculator(_timerAccess, _timeBuilder); }
public void Setup() { _timeGetter = Substitute.For <ITimeGetter>(); _sut = new TimeBuilder(_timeGetter); }