public async Task GetSummaryOfPlantEventReturnsNotFoundAndCorrectContentTypeIfResourceNotFoundExceptionOccured() { // Given A.CallTo(() => _fakeQuery.Summary(A <Guid> .Ignored, A <DateTime?> .Ignored, A <DateTime?> .Ignored)) .Returns(Task.FromResult <IEnumerable <SpeciesNutritionSummaryModel> >(null)); // When HttpResponseMessage response = await Client.GetAsync(EndPointFactory.SpeciesSummaryEndpoint()); // Then response.StatusCode.Should().Be(HttpStatusCode.NotFound); response.Content.Headers.ContentType.ToString().Should().Be("application/problem+json; charset=utf-8"); A.CallTo(() => _fakeQuery.Summary(A <Guid> .Ignored, A <DateTime?> .Ignored, A <DateTime?> .Ignored)) .MustHaveHappenedOnceExactly(); }