public async Task GetSummaryOfAdministeredPlantNutrientsReturnsNotFoundAndCorrectContentTypeIfResourceNotFoundExceptionOccured() { // Given A.CallTo(() => _fakeQuery.Summary(A <Guid> .Ignored, A <DateTime?> .Ignored, A <DateTime?> .Ignored)) .Returns(Task.FromResult <IEnumerable <PlantNutrientAdministrationSummaryModel> >(null)); // When HttpResponseMessage response = await Client.GetAsync(EndPointFactory.NutrientsSummaryEndpoint()); // 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(); }