public async Task TrackTiming_ShouldAddTiming() { await _telemetryService.TrackTiming("http://localhost/budgets/06/2016", TimeSpan.FromSeconds(4)); var telemetryTiming = _timingRepository.Entities.Single(); Assert.Equal(_dateTimeServiceStub.Now, telemetryTiming.Timestamp); Assert.Equal("http://localhost/budgets/06/2016", telemetryTiming.Url); Assert.Equal(TimeSpan.FromSeconds(4), telemetryTiming.Timespan); }