public async Task should_log() { await Client.GetAsync("/message"); var logger = (MockLogger)TestScope.Resolve <IHttpLogger>(); Assert.Equal($"{WebApiUri}message", logger.LastRecorded.RequestUri.AbsoluteUri); Assert.Equal("GET", logger.LastRecorded.HttpMethod); Assert.Equal(HttpStatusCode.OK, logger.LastRecorded.StatusCode); Assert.True(logger.LastRecorded.Elapsed != TimeSpan.Zero); }