public async Task CreateCommand_ShouldUpdateReadModel() { // prepare query var query = new GetMeeting(fixture.MeetingId); //send query var queryResponse = await fixture.Client.GetAsync($"{MeetingsManagementApi.MeetingsUrl}/{fixture.MeetingId}"); queryResponse.EnsureSuccessStatusCode(); var queryResult = await queryResponse.Content.ReadAsStringAsync(); queryResult.Should().NotBeNull(); var meetingSummary = queryResult.FromJson <MeetingView>(); meetingSummary.Id.Should().Be(fixture.MeetingId); meetingSummary.Name.Should().Be(fixture.MeetingName); }
public async Task ScheduleMeeting_ShouldUpdateReadModel() { // prepare query var query = new GetMeeting(fixture.MeetingId); //send query var queryResponse = await fixture.GetAsync($"{fixture.MeetingId}"); queryResponse.EnsureSuccessStatusCode(); var queryResult = await queryResponse.Content.ReadAsStringAsync(); queryResult.Should().NotBeNull(); var meeting = queryResult.FromJson <MeetingView>(); meeting.Id.Should().Be(fixture.MeetingId); meeting.Name.Should().Be(fixture.MeetingName); meeting.Start.Should().Be(fixture.Start); meeting.End.Should().Be(fixture.End); }