Ejemplo n.º 1
0
 public CursoController()
 {
     if (_cursoService == null)
     {
         _cursoService = new CursoService();
     }
 }
Ejemplo n.º 2
0
 public ProfessoresController(IProfessorService professorService, IMapper mapper, INotificator notificator, IEnderecoService enderecoService, ICursoService cursoService) : base(notificator)
 {
     _professorService = professorService;
     _mapper           = mapper;
     _enderecoService  = enderecoService;
     _cursoService     = cursoService;
 }
Ejemplo n.º 3
0
 public DocenteController(IMultyTenancyService mt, IDocenteService ids, IUserService ius, ICursoService ics)
 {
     docenteService      = ids;
     userService         = ius;
     cursoService        = ics;
     multyTenancyService = mt;
 }
 public ParticipanteController(IParticipanteService service, IEtapaService etapaService, ICursoService cursoService, ILeccionService leccionService)
 {
     this.service        = service;
     this.etapaService   = etapaService;
     this.cursoService   = cursoService;
     this.leccionService = leccionService;
 }
Ejemplo n.º 5
0
 public CursosController(ICursoService cursoService, IMapper mapper, INotificator notificator, IProfessorService professorService)
     : base(notificator)
 {
     _cursoService     = cursoService;
     _mapper           = mapper;
     _professorService = professorService;
 }
Ejemplo n.º 6
0
 public CursoAppService(
     IMapper map,
     INotificador notificador,
     ICursoService service
     ) : base(map, notificador)
 {
     _service = service;
 }
Ejemplo n.º 7
0
 public PessoaController(IPessoaService _PessoaService,
                         ICursoSemTurmaService _CursoSemTurmaService,
                         ICursoService _CursoService)
 {
     PessoaService        = _PessoaService;
     CursoSemTurmaService = _CursoSemTurmaService;
     CursoService         = _CursoService;
 }
 public CursoServiceTest()
 {
     cursoService = new CursoService(
         new GenericRepository <Curso>(
             FixtureFactory.GetContext().ApplyCursoMocks()
             )
         );
 }
Ejemplo n.º 9
0
 public RelatorioController(IEmpresaService _empresaService,
                            IAeroportoService _aeroportoService,
                            ICursoService _cursoService)
 {
     empresaService   = _empresaService;
     aeroportoService = _aeroportoService;
     cursoService     = _cursoService;
 }
Ejemplo n.º 10
0
 public CursosController(ICursosRepositorio cursosRepositorio,
                         IMapper mapper,
                         ICursoService cursoService, INotificador notificador,
                         IUser user) : base(notificador, user)
 {
     _cursoRepositorio = cursosRepositorio;
     _mapper           = mapper;
     _cursoService     = cursoService;
 }
Ejemplo n.º 11
0
 public CursosController(INotificator notificator,
                         ICursoService cursoService,
                         ICursoRepository cursoRepository,
                         IMapper mapper) : base(notificator)
 {
     _cursoService    = cursoService;
     _cursoRepository = cursoRepository;
     _mapper          = mapper;
 }
        public ValidarRegraData()
        {
            var options = new DbContextOptionsBuilder <AppDbContext>()
                          .UseInMemoryDatabase("DbCursosTest")
                          .Options;
            var contexto = new AppDbContext(options);

            uow          = new UnitOfWork(contexto);
            cursoService = new CursoService(uow);
        }
Ejemplo n.º 13
0
 public MainWindowViewModel(IDialogCoordinator dialog)
 {
     this.dialog       = dialog;
     cursoService      = new CursoService(new CursoRepository());
     IncluirCommand    = new DelegateCommand(Incluir, () => !ModoEdicao).ObservesProperty(() => ModoEdicao);
     AlterarCommand    = new DelegateCommand(Alterar, () => ModoEdicao).ObservesProperty(() => ModoEdicao);
     InativarCommand   = new DelegateCommand(Inativar, () => ModoEdicao).ObservesProperty(() => ModoEdicao);
     LimparTelaCommand = new DelegateCommand(Limpar);
     BuscarCursos();
 }
Ejemplo n.º 14
0
 public CalificacionController(
     IEstudianteService estudianteService,
     ICursoService cursoService,
     ICalificacionesService calificacionService,
     IHostingEnvironment env
     )
 {
     _estudianteService   = estudianteService;
     _cursoService        = cursoService;
     _calificacionService = calificacionService;
     _env = env;
 }
Ejemplo n.º 15
0
        public CursoUnitTest()
        {
            mock          = Substitute.For <ICursoService>();
            mockCategoria = Substitute.For <ICategoriaRepository>();

            #region Mock para buscar todas as categorias

            //cria o mock para testar a logica do retorno das categorias
            List <Categoria> lista = new List <Categoria>();
            lista.Add(new Categoria()
            {
                Descricao = "Comportamental"
            });
            lista.Add(new Categoria()
            {
                Descricao = "Programação"
            });
            lista.Add(new Categoria()
            {
                Descricao = "Qualidade"
            });
            lista.Add(new Categoria()
            {
                Descricao = "Processos"
            });

            var query = lista.AsQueryable();

            mockCategoria.GetAll().Returns(query);

            #endregion

            #region Mock para buscar todas as categorias

            //cria o mock para testar a logica da busca

            CursoGetDto dtoGet = new CursoGetDto()
            {
                DataInicio   = DateTime.Now.AddDays(3),
                DataTermino  = DateTime.Now.AddMonths(1),
                Descricao    = "Descrição de teste",
                Id           = 1,
                NumeroAlunos = 0,
                IdCategoria  = 1,
                Categoria    = "Comportamental"
            };

            mock.Get(ID_VALIDO).Returns(dtoGet);

            #endregion
        }
Ejemplo n.º 16
0
 public ProductoService(IProductoQuerying productoQuerying, IArticuloService articuloService, ICapituloService capituloService,
     ILibroService libroService, IReporteService reporteService, IResenaService resenaService, IObraTraducidaService obraTraducidaService,
     IProyectoService proyectoService, ICursoService cursoService, ITesisDirigidaService tesisDirigidaService, IDictamenService dictamenService,
     IOrganoExternoService organoExternoService, IEventoService eventoService, IParticipacionMedioService participacionMedioService)
 {
     this.productoQuerying = productoQuerying;
     this.articuloService = articuloService;
     this.capituloService = capituloService;
     this.libroService = libroService;
     this.reporteService = reporteService;
     this.resenaService = resenaService;
     this.obraTraducidaService = obraTraducidaService;
     this.proyectoService = proyectoService;
     this.cursoService = cursoService;
     this.tesisDirigidaService = tesisDirigidaService;
     this.dictamenService = dictamenService;
     this.organoExternoService = organoExternoService;
     this.eventoService = eventoService;
     this.participacionMedioService = participacionMedioService;
 }
Ejemplo n.º 17
0
 public CursoAppService(ICursoService cursoService, ITipoCursoService tipoCursoService)
 {
     _cursoService     = cursoService;
     _tipoCursoService = tipoCursoService;
 }
Ejemplo n.º 18
0
 public CursoController(ICursoService CursoService)
 {
     this.CursoService = CursoService;
 }
Ejemplo n.º 19
0
 public CursoController(ICursoService cursoService, ICategoryService categoriaService, IWebHostEnvironment webHostEnvironment)
 {
     _cursoService       = cursoService;
     _webHostEnvironment = webHostEnvironment;
     _categoriaService   = categoriaService;
 }
Ejemplo n.º 20
0
 public UsuarioService(IUsuarioRepository repository, INotificador notificador, ICursoService cursoService) : base(notificador)
 {
     this.repository   = repository;
     this.cursoService = cursoService;
 }
Ejemplo n.º 21
0
 public CursoApplication(ICursoService cursoService, IMapper mapper)
 {
     _cursoService = cursoService;
     _mapper       = mapper;
 }
 public CursoAppService(ICursoService cursoService, ITipoCursoService tipoCursoService, IUnitOfWork uow)
     : base(uow)
 {
     _cursoService = cursoService;
     _tipoCursoService = tipoCursoService;
 }
 public CursoController(ICursoService service)
 {
     _service = service;
 }
 public AddCursoService(ICursoService cursoService, InjectorServiceBaseApresentation injector)
     : base(cursoService, injector)
 {
 }
Ejemplo n.º 25
0
 public CursoAppService(ICursoService cursoService, ITipoCursoService tipoCursoService, IUnitOfWork uow)
     : base(uow)
 {
     _cursoService     = cursoService;
     _tipoCursoService = tipoCursoService;
 }
 public CursoController(IMultyTenancyService mt, ICursoService ics, IHttpContextAccessor httpContextAccessor)
 {
     cursoService         = ics;
     multyTenancyService  = mt;
     _httpContextAccessor = httpContextAccessor;
 }
 public AreaController(IAreaService areaService, ICursoService cursoService)
 {
     this.areaService  = areaService;
     this.cursoService = cursoService;
 }
Ejemplo n.º 28
0
 public CursoController(ICursoService service, ILogger <CursoController> logger)
 {
     _service = service;
     _logger  = logger;
 }
Ejemplo n.º 29
0
 public AgregarCurso()
 {
     this.service = new CursoService();
 }
Ejemplo n.º 30
0
 public EliminarCurso()
 {
     this.service = new CursoService();
 }
 public CursoAppService(ICursoService cursoService) : base(cursoService)
 {
     _cursoService = cursoService;
 }
Ejemplo n.º 32
0
 public ActualizarCurso()
 {
     this.service = new CursoService();
 }
Ejemplo n.º 33
0
 public CursoController(ICursoService cursoService)
 {
     _cursoService = cursoService;
 }
Ejemplo n.º 34
0
 public ConsultarCurso()
 {
     this.service = new CursoService(); ;
 }
Ejemplo n.º 35
0
 public TurmaController(ITurmaService service, ICursoService cursoService)
 {
     Service      = service;
     CursoService = cursoService;
 }
 public BaseCursoService(ICursoService cursoService, InjectorServiceBaseApresentation injector)
     : base(injector)
 {
     CursoService = cursoService;
 }