public async Task should_allow_get_back_a_note_by_id() { var note = await Given.ANoteInTheDatabase(); var response = await Given .TestServer .CreateRequest(Api.V1.Notes.GetBy(note.Id)) .GetAsync(); response.StatusCode.Should().Be(StatusCodes.Status200OK); var result = await response.Content.ReadAsAsync <Note>(); result.Id.Should().Be(note.Id); result.Content.Should().Be(note.Content); result.Important.Should().Be(note.Important); }