Exemple #1
0
        public PerfilController([FromServices] IDistributedCache cache, IPerfilService service)
        {
            _cache         = cache;
            _perfilService = service;

            _cacheOptions = new DistributedCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromMinutes(2));
        }
Exemple #2
0
 public ManejoUsuariosController(IStringLocalizer <SharedResources> sharedLocalizer, IPerfilService perfilService, IUserMap map, IUserService userservice)
 {
     this.userMap       = map;
     this.userService   = userservice;
     this.perfilService = perfilService;
     _sharedLocalizer   = sharedLocalizer;
 }
 public SeguridadController(ISeguridadService seguridadService, IMapper mapper, IPerfilService perfilService, IUsuarioService usuarioService)
 {
     this._seguridadService = seguridadService;
     this._mapper           = mapper;
     this._perfilService    = perfilService;
     this._usuarioService   = usuarioService;
 }
 public ManejoUsuariosController(EmailSender email, IPerfilService perfilService, IUserMap map, IUserService userservice)
 {
     this.userMap       = map;
     this.userService   = userservice;
     this.perfilService = perfilService;
     this.email         = email;
 }
Exemple #5
0
 public CriarPerfilCommandHandler(IMediator mediator,
                                  IPerfilRepository perfilRepository, IPerfilService domainService,
                                  IUnitOfWork unitOfWork, INotificationHandler <DomainNotification> notifications) : base(mediator, unitOfWork, notifications)
 {
     _mediator         = mediator;
     _perfilRepository = perfilRepository;
     _perfilService    = domainService;
 }
 public AtribuirPermissaoCommandHandler(IMediator mediator, IUnitOfWork unitOfWork,
                                        INotificationHandler <DomainNotification> notifications, IPerfilService domainService,
                                        IPerfilRepository perfilRespository) : base(mediator, unitOfWork, notifications)
 {
     _mediator         = mediator;
     _perfilService    = domainService;
     _perfilRepository = perfilRespository;
 }
Exemple #7
0
 public PerfilController(ILoggerManager logger, IPerfilService _perfilService,
                         IMapper mapper, IOptions <AppSettings> appSettings)
 {
     _logger        = logger;
     _PerfilService = _perfilService;
     _mapper        = mapper;
     _appSettings   = appSettings.Value;
 }
 /// <summary>
 /// PerfilController
 /// </summary>
 /// <param name="service"></param>
 public PerfilController(IPerfilService service, IMapper mapper, IAuditoriaService auditoria, IEmpresaService serviceEmpresa, IUserService serviceUsuario)
 {
     _auditoria      = auditoria;
     _service        = service;
     _mapper         = mapper;
     _serviceEmpresa = serviceEmpresa;
     _serviceUsuario = serviceUsuario;
 }
 public PerfilesController(IModuloMap moduloMap, IModuloPerfilService moduloPerfilService, IPerfilMap map, IPerfilService perfilservice, IModuloService moduloService, IModuloPerfilMap moduloPerfilMap)
 {
     this.perfilMap           = map;
     this.perfilService       = perfilservice;
     this.moduloService       = moduloService;
     this.moduloPerfilMap     = moduloPerfilMap;
     this.moduloPerfilService = moduloPerfilService;
     this.moduloMap           = moduloMap;
 }
Exemple #10
0
        public MainPageViewModel(
            IPerfilService perfilService,
            INavegacaoService navegacaoService)
        {
            _perfilService    = perfilService;
            _navegacaoService = navegacaoService;

            Pins            = new ObservableCollection <IPin>();
            PesquisaCommand = new Command(PesquisaCommandExecute, (obj) => !EstaOcupado);
            DevsPageCommand = new Command(DevsPageCommandExecute, (obj) => !EstaOcupado);
        }
        public void Setup()
        {
            perfilService = Substitute.For<IPerfilService>();
            perfilAppService = new PerfilAppService(perfilService);
            perfilVM = new PerfilVM
            {
                Nome = "Novo Perfil"
            };

            Mapper.CreateMap<PerfilVM, Perfil>();
            Mapper.CreateMap<Perfil, PerfilVM>();
        }
Exemple #12
0
 public UsersController(
     IUserService userService,
     IPerfilService perfilService,
     IMapper mapper,
     IOptions <AppSettings> appSettings,
     IOptions <Ldap> ldapSettings)
 {
     _userService   = userService;
     _mapper        = mapper;
     _appSettings   = appSettings.Value;
     _ldapSettings  = ldapSettings.Value;
     _perfilService = perfilService;
 }
Exemple #13
0
 public UsuarioAppService(
     IUsuarioService usuarioService,
     IUnitOfWork uow,
     ILogService logService,
     IPerfilService perfilService,
     IAdministradorService admService,
     IUnidadeService unidadeService,
     IPermissaoService permissaoService,
     IUsuarioPerfilUnidadeService usuarioPerfilUnidadeService)
     : base(uow)
 {
     _usuarioService              = usuarioService;
     _logService                  = logService;
     _perfilService               = perfilService;
     _admService                  = admService;
     _unidadeService              = unidadeService;
     _permissaoService            = permissaoService;
     _usuarioPerfilUnidadeService = usuarioPerfilUnidadeService;
 }
        public void Initialize()
        {
            var dbInicio = new DbTests();

            try
            {
                dbInicio.Limpa_E_Cria_Database();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            Console.WriteLine("Banco de dados Limpo e atualizado");

            BootStrapper.RegisterServicesSingleton(kernel);
            _uow            = kernel.Get <IUnitOfWork>();
            _usuarioService = kernel.Get <IUsuarioService>();
            _perfilService  = kernel.Get <IPerfilService>();
            _unidadeService = kernel.Get <IUnidadeService>();
            _feriadoService = kernel.Get <IFeriadoService>();
            usuario         = _usuarioService.ObterPorCPF("11391275861");
        }
 public PerfilAppService(IPerfilService perfilService, IMapper mapper) : base(perfilService, mapper)
 {
     _perfilService = perfilService;
     _mapper        = mapper;
 }
Exemple #16
0
 public PerfilApplication(IPerfilService perfilService)
 {
     _perfilService = perfilService;
 }
Exemple #17
0
 public PerfilAppService(IPerfilService perfilService) : base(perfilService)
 {
     _perfilService = perfilService;
 }
 public void Setup()
 {
     perfilRepository = Substitute.For<IPerfilRepository>();
     perfilService = new PerfilService(perfilRepository);
 }
 public CuentaController(IPerfilService perfilService, IUserMap map, IUserService userservice)
 {
     this.userMap       = map;
     this.userservice   = userservice;
     this.perfilService = perfilService;
 }
 public PerfilMap(IPerfilService perfilService)
 {
     this.perfilService = perfilService;
 }
 public PerfilController(IPerfilService perfilService)
 {
     _perfilService = perfilService;
 }
Exemple #22
0
 public EmpresaController(IEmpresaService companyService, IPerfilService perfilService, IModuloService moduloService)
 {
     _companyService = companyService;
     _perfilService  = perfilService;
     _moduloService  = moduloService;
 }
 public PerfilController(IPerfilService perfilService, IMapper mapper, IUriService uriService)
 {
     this._perfilService = perfilService;
     this._mapper        = mapper;
     this._uriService    = uriService;
 }
 //Esta region es el constructor que inicializa el servicio de la capa de logica
 #region Constructor
 public PerfilController(IPerfilService servicio)
 {
     this.servicio = servicio;
 }
Exemple #25
0
 public UsuariosController(IUsuarioService usuarioService, IMapper mapper, IPerfilService perfilService)
 {
     this._usuarioService = usuarioService;
     this._mapper         = mapper;
     this._perfilService  = perfilService;
 }
Exemple #26
0
 public PerfisController(IPerfilService service)
 {
     this.Service = service;
 }
 public UsuarioAppService(IUsuarioService usuarioService, IPerfilService perfilService)
 {
     this.usuarioService = usuarioService;
     this.perfilService = perfilService;
 }
Exemple #28
0
 public PerfilAppService(IPerfilService service, IMapper mapper) : base(service, mapper)
 {
     this.service = service;
     this.mapper  = mapper;
 }
 public PerfisController(IPerfilService service)
 {
     this.Service = service;
 }
Exemple #30
0
 public FuncionarioController(IFuncionarioService serviceFuncionario, IPerfilService servicePerfil)
 {
     _serviceFuncionario = serviceFuncionario;
     _servicePerfil      = servicePerfil;
 }
Exemple #31
0
 public PerfilController(IPerfilService PerfilService)
 {
     _PerfilService = PerfilService;
 }
 public PerfilController(IPerfilService perfilService, IModuloService moduloService)
 {
     _perfilService = perfilService;
     _moduloService = moduloService;
 }
 public PerfilesController(IPerfilService perfilService, IMapper mapper)
 {
     this._perfilService = perfilService;
     this._mapper        = mapper;
 }
 public PerfilAppService(IPerfilService perfilService)
 {
     this.perfilService = perfilService;
 }
 public UsuarioController(IUsuarioService servicio, IPerfilService perfilServicio)
 {
     this.servicio       = servicio;
     this.perfilServicio = perfilServicio;
 }