public async Task ThenAllShortlistItemsForUserAreReturned() { if (!_context.TryGetValue <HttpResponseMessage>(ContextKeys.HttpResponse, out var result)) { Assert.Fail($"scenario context does not contain value for key [{ContextKeys.HttpResponse}]"); } var model = await HttpUtilities.ReadContent <GetShortlistForUserResponse>(result.Content); var allShortlistsForUser = DbUtilities.GetAllShortlists() .Where(shortlist => shortlist.ShortlistUserId == Guid.Parse(DbUtilities.ShortlistUserId)); model.Shortlist.Should().BeEquivalentTo(allShortlistsForUser, options => options .ExcludingMissingMembers() ); }