public async Task Should_return_ok_with_list_of_conferences() { var participants = new List <Participant> { Builder <Participant> .CreateNew().With(x => x.Role = UserRole.Individual).Build(), Builder <Participant> .CreateNew().With(x => x.Role = UserRole.Representative).Build(), Builder <Participant> .CreateNew().With(x => x.Role = UserRole.Judge).Build() }; var conferences = Builder <Conference> .CreateListOfSize(10).All() .With(x => x.Scheduled_date_time = DateTime.UtcNow.AddMinutes(-60)) .With(x => x.Scheduled_duration = 20) .With(x => x.Status = ConferenceState.NotStarted) .With(x => x.Participants = participants) .Build().ToList(); _videoApiClientMock .Setup(x => x.GetConferencesTodayForJudgeByUsernameAsync(It.IsAny <string>())) .ReturnsAsync(conferences); var result = await _controller.GetConferencesForJudgeAsync(); var typedResult = (OkObjectResult)result.Result; typedResult.Should().NotBeNull(); var conferencesForUser = (List <ConferenceForJudgeResponse>)typedResult.Value; conferencesForUser.Should().NotBeNullOrEmpty(); conferencesForUser.Count.Should().Be(conferences.Count); var i = 1; foreach (var conference in conferencesForUser) { conference.CaseName.Should().Be($"Case_name{i++}"); } }