public async Task should_allow_get_back_notes() { var notes = await Given.AListOfNotesInTheDatabase(); var response = await Given .TestServer .CreateRequest(Api.V1.Notes.Get) .GetAsync(); response.StatusCode.Should().Be(StatusCodes.Status200OK); var result = await response.Content.ReadAsAsync <List <Note> >(); result.Should().HaveCount(notes.Count); }