public async Task Should_return_ok_with_list_of_conferences() { var conferences = Builder <Conference> .CreateListOfSize(10).All() .With(x => x.Scheduled_date_time = DateTime.UtcNow.AddMinutes(-60)) .Build().ToList(); _videoApiClientMock .Setup(x => x.GetConferencesTodayForIndividualByUsernameAsync(It.IsAny <string>())) .ReturnsAsync(conferences); var result = await _controller.GetConferencesForIndividual(); var typedResult = (OkObjectResult)result.Result; typedResult.Should().NotBeNull(); var conferencesForUser = (List <ConferenceForIndividualResponse>)typedResult.Value; conferencesForUser.Should().NotBeNullOrEmpty(); conferencesForUser.Count.Should().Be(conferences.Count); }