public void GetCategoriaById_Return_OkResult()
        {
            var controller = new CategoriasController(repository, null, mapper);
            var catId      = 2;

            var data = controller.GetId(catId);

            Console.WriteLine(data);

            Assert.IsType <CategoriaDTO>(data.Result.Value);
        }
        public void GetCategoriaById_Return_NotFoundResult()
        {
            //Arrange
            var controller = new CategoriasController(repository, null, mapper);
            var catId      = 9999;

            //Act
            var data = controller.GetId(catId);

            //Assert
            Assert.IsType <NotFoundResult>(data.Result.Result);
        }