public async Task ForSessionActionResult_ReturnsNotFoundObjectResultForNonexistentSession()
        {
            // Arrange
            var mockRepo             = new Mock <IBrainstormSessionRepository>();
            var controller           = new IdeasController(mockRepo.Object);
            var nonExistentSessionId = 999;

            // Act
            var result = await controller.ForSessionActionResult(nonExistentSessionId);

            // Assert
            var actionResult = Assert.IsType <ActionResult <List <IdeaDTO> > >(result);

            Assert.IsType <NotFoundObjectResult>(actionResult.Result);
        }
        public async Task ForSessionActionResult_ReturnsIdeasForSession()
        {
            // Arrange
            int testSessionId = 123;
            var mockRepo      = new Mock <IBrainstormSessionRepository>();

            mockRepo.Setup(repo => repo.GetByIdAsync(testSessionId))
            .ReturnsAsync(GetTestSession());
            var controller = new IdeasController(mockRepo.Object);

            // Act
            var result = await controller.ForSessionActionResult(testSessionId);

            // Assert
            var actionResult = Assert.IsType <ActionResult <List <IdeaDTO> > >(result);
            var returnValue  = Assert.IsType <List <IdeaDTO> >(actionResult.Value);
            var idea         = returnValue.FirstOrDefault();

            Assert.Equal("One", idea.Name);
        }