Ejemplo n.º 1
0
        public void GetById_ReturnsTopic()
        {
            //Arrange
            _topicService.Setup(s => s.GetByIdAsync("topic1")).ReturnsAsync(_topic);

            //Act
            var actionResult = _topicController.GetById("topic1");

            //Assert
            actionResult.Result.Should().BeOfType <ActionResult <TopicDto> >();
        }