public VacantDriversQueryHandler( ILogger <VacantDriversQueryHandler> logger, DriverRestService driverRestService) { _logger = logger; _driverRestService = driverRestService; }
public DriverRestServiceTests() { _httpTest = new HttpTest(); _currentDateTime = _faker.Date.Recent(); _url = _faker.Internet.Url(); #region UrlBuilder var restServiceSettings = Substitute.For <RestServiceSettings>(); var urlBuilder = Substitute.For <DriverRestServiceUrlBuilder>(restServiceSettings); urlBuilder.GetVacantDriversUrl(Arg.Any <DateTime>()).Returns(_url); #endregion _restService = CreateTestedComponent(urlBuilder); }