public void create_RegistroCreadoExitosamente_NotCreate()
        {
            //Arrange
            Template template = new Template();
            CreatorTemplateViewModel templateViewModel = new CreatorTemplateViewModel();

            //Mock
            Mock <IMapper> mapper = new Mock <IMapper>();
            Mock <ICreatorService <Template> > creatorService = new Mock <ICreatorService <Template> >();

            mapper.Setup((map) => map.Map <Template>(templateViewModel)).Returns(template);
            creatorService.Setup((create) => create.Create(template)).Throws(new GettingException());
            //SUT
            var SUT = new ClassCreatorViewModelService(mapper.Object, creatorService.Object);

            //Assert
            Assert.Throws <GettingException>(() => SUT.Create(templateViewModel));
        }
        public void Create_RecordCreated_ReturnGuid()
        {
            //Arrange
            Template template = new Template();
            CreatorTemplateViewModel templateViewModel = new CreatorTemplateViewModel();

            //Mock
            Mock <IMapper> mapper = new Mock <IMapper>();
            Mock <ICreatorService <Template> > creatorService = new Mock <ICreatorService <Template> >();

            mapper.Setup((map) => map.Map <Template>(templateViewModel)).Returns(template);
            creatorService.Setup((create) => create.Create(template)).Returns(new Guid("23CD9099-DCC2-4CD5-CEB5-08D7961EA229"));
            //SUT
            var  SUT = new ClassCreatorViewModelService(mapper.Object, creatorService.Object);
            Guid id  = SUT.Create(templateViewModel);

            //Assert
            Assert.IsType <Guid>(id);
        }