public async Task Should_return_list_of_court_rooms_accounts_with_status_ok() { var accounts = UserResponseBuilder.BuildData(); var usernames = new VhoConferenceFilterQuery { UserNames = new List <string> { "Manual01", "Manual03" } }; _mocker.Mock <IUserApiClient>().Setup(x => x.GetJudgesAsync()).ReturnsAsync(accounts); var result = await _sut.GetCourtRoomsAccounts(usernames); var typedResult = (OkObjectResult)result.Result; typedResult.Should().NotBeNull(); var judgeList = typedResult.Value as List <CourtRoomsAccountResponse>; judgeList.Should().NotBeNull(); judgeList.Count.Should().Be(2); judgeList[0].CourtRooms.Count.Should().Be(3); judgeList[1].CourtRooms.Count.Should().Be(1); judgeList[0].Venue.Should().Be("Manual01"); judgeList[1].Venue.Should().Be("Manual03"); judgeList[0].CourtRooms[0].Should().Be("Court room 01"); judgeList[0].CourtRooms[1].Should().Be("Court room 02"); judgeList[0].CourtRooms[2].Should().Be("Court room 03"); judgeList[1].CourtRooms[0].Should().Be("Court room 01"); }