public void GetAll_InvokeService_ReturnsListTemplate()
        {
            //Arrange
            List <Template> lstTemplate = new List <Template>()
            {
                new Template()
                {
                    Id           = new Guid("4EC575AB-1649-4F0F-43BF-08D78D888A4C"),
                    Name         = "prueba",
                    Description  = "prueba",
                    AddedDate    = DateTime.UtcNow,
                    ModifiedDate = DateTime.UtcNow,
                    IsActive     = true
                }
            };

            //Mock
            Mock <IFinderService <Template> > finderService = new Mock <IFinderService <Template> >();
            MapperConfiguration mapperconfig = new MapperConfiguration(_mapper =>
            {
                _mapper.CreateMap <Template, TemplateViewModel>();
            });

            IMapper mapper = mapperconfig.CreateMapper();

            finderService.Setup((_finderService) => _finderService.GetAll()).Returns(lstTemplate);

            //SUT
            var SUT = new ClassFinderViewModelService(mapper, finderService.Object);

            //Assert
            Assert.True(SUT.GetAll().Any());
        }
        public void GetAll_InvokeService_ReturnsListTemplateEmpty()
        {
            //Arrange
            List <Template> lstTemplate = new List <Template>();

            //Mock
            Mock <IFinderService <Template> > finderService = new Mock <IFinderService <Template> >();
            MapperConfiguration mapperconfig = new MapperConfiguration(_mapper =>
            {
                _mapper.CreateMap <Template, TemplateViewModel>();
            });

            IMapper mapper = mapperconfig.CreateMapper();

            finderService.Setup((_finderService) => _finderService.GetAll()).Returns(lstTemplate);

            //SUT
            var SUT = new ClassFinderViewModelService(mapper, finderService.Object);

            //Assert
            Assert.True(!SUT.GetAll().Any());
        }