public async void Task_GetCharacter_Return_OkResult()
        {
            //Arrange
            var dbContext = DataContextMocker.GetDataContext(nameof(Task_GetCharacter_Return_OkResult));
            CharacterService characterService = new CharacterService(dbContext);

            var controller = new CharacterController(characterService);

            //Act
            var data = await controller.Get();

            //Assert
            Assert.IsType <OkObjectResult>(data);
        }
        public async void Task_GetCharacterById_Return_BadRequestResult()
        {
            //Arrange
            var dbContext = DataContextMocker.GetDataContext(nameof(Task_GetCharacterById_Return_BadRequestResult));
            CharacterService characterService = new CharacterService(dbContext);
            var controller = new CharacterController(characterService);

            int?characterId = null;

            //Act
            var data = await controller.GetCharacterById(characterId);

            //Assert
            Assert.IsType <BadRequestObjectResult>(data);
        }
        public async void Task_GetStoriesById_Return_NotFoundResult()
        {
            //Arrange
            var dbContext = DataContextMocker.GetDataContext(nameof(Task_GetStoriesById_Return_NotFoundResult));
            CharacterService characterService = new CharacterService(dbContext);
            var controller = new CharacterController(characterService);

            var characterId = 2;

            //Act
            var data = await controller.GetStoriesById(characterId);

            //Assert
            Assert.IsType <NotFoundObjectResult>(data);
        }
        public void Task_GetCharacter_Return_BadRequestResult()
        {
            //Arrange
            var dbContext = DataContextMocker.GetDataContext(nameof(Task_GetCharacter_Return_BadRequestResult));
            CharacterService characterService = new CharacterService(dbContext);
            var controller = new CharacterController(characterService);

            //Act
            var data = controller.Get();

            data = null;

            //Assert
            if (data != null)
            {
                Assert.IsType <BadRequestObjectResult>(data);
            }
        }
        public async void Task_GetCharacter_MatchResult()
        {
            //Arrange
            var dbContext = DataContextMocker.GetDataContext(nameof(Task_GetCharacter_MatchResult));
            CharacterService characterService = new CharacterService(dbContext);

            var controller = new CharacterController(characterService);

            //Act
            var data = await controller.Get();

            //Assert
            Assert.IsType <OkObjectResult>(data);

            var okResult = data.Should().BeOfType <OkObjectResult>().Subject;
            var post     = okResult.Value.Should().BeAssignableTo <ServiceResponse <CharacterResponse> >().Subject;

            Assert.Equal("3-D Man", post.data.Results[0].Name);
            Assert.Equal("3-D Man", post.data.Results[0].Description);
        }
        public async void Task_GetSeriesById_MatchResult()
        {
            //Arrange
            var dbContext = DataContextMocker.GetDataContext(nameof(Task_GetSeriesById_MatchResult));
            CharacterService characterService = new CharacterService(dbContext);
            var controller = new CharacterController(characterService);

            int?characterId = 1011334;

            //Act
            var data = await controller.GetSeriesById(characterId);

            //Assert
            Assert.IsType <OkObjectResult>(data);

            var okResult = data.Should().BeOfType <OkObjectResult>().Subject;
            var post     = okResult.Value.Should().BeAssignableTo <ServiceResponse <SeriesResponse> >().Subject;

            Assert.Equal("Avengers: The Initiative (2007 - 2010)", post.data.Results[0].title);
            Assert.Equal("Avengers", post.data.Results[0].description);
        }