public async Task GetApprenticeshipEventsByDateRange() { DateTime?fromDate = System.DateTime.Parse("2017-05-01"); DateTime?toDate = DateTime.Parse("2017-12-08"); int pageSize = 1000; int pageNumber = 1; var dateString = "hej"; var employerRequest = new TestRequest(new Uri(ExpectedApiBaseUrl + $"api/events/apprenticeships?fromDate=20170501000000&toDate=20171208000000&pageSize={pageSize}&pageNumber={pageNumber}"), string.Empty); _fakeHandler.AddFakeResponse(employerRequest, new HttpResponseMessage { StatusCode = HttpStatusCode.OK, Content = new StringContent(JsonConvert.SerializeObject(new List <ApprenticeshipEventView>())) }); var apprenticeshipEventList = await _sut.GetApprenticeshipEventsByDateRange(fromDate, toDate, pageSize, pageNumber); Assert.Pass(); }