Exemplo n.º 1
0
 public AlunosController(IAlunoRepository alunoRepository, IMapper mapper, INotificador notificador,
                         IAlunoService alunoService) : base(notificador)
 {
     _alunoRepository = alunoRepository;
     _alunoService    = alunoService;
     _mapper          = mapper;
 }
Exemplo n.º 2
0
 public DependentesController(INotificador notificador,
                              IResponsavelService responsavelService,
                              IAlunoService alunoService) : base(notificador)
 {
     _responsavelService = responsavelService;
     _alunoService       = alunoService;
 }
Exemplo n.º 3
0
 public AlunosController(IAlunoService alunoService,
                         AlunoToAlunoDTOMapper alunoToAlunoDTOMapper,
                         AlunoDTOToAlunoMapper alunoDTOToAlunoMapper)
 {
     _alunoService          = alunoService;
     _alunoToAlunoDTOMapper = alunoToAlunoDTOMapper;
     _alunoDTOToAlunoMapper = alunoDTOToAlunoMapper;
 }
Exemplo n.º 4
0
 public AlunoController(IUnitOfWork unitOfWork,
                        IAlunoService alunoService,
                        IAlunoFinder alunoFinder)
 {
     _unitOfWork   = unitOfWork;
     _alunoService = alunoService;
     _alunoFinder  = alunoFinder;
 }
Exemplo n.º 5
0
 public TurmaService(ITurmaRepository repository,
                     ITurmaDisciplinaService turmaDisciplinaService,
                     IAlunoService alunoService,
                     IDisciplinaService disciplinaService) : base(repository)
 {
     _turmaDisciplinaService = turmaDisciplinaService;
     _alunoService           = alunoService;
     _disciplinaService      = disciplinaService;
 }
Exemplo n.º 6
0
 public TurmasController(UserManager <ApplicationUser> userManager, IProfessorService professorService,
                         ITurmaService turmaService, IAlunoService alunoService, ITurma_AlunoService aluno_Turma_Service)
 {
     _userManager         = userManager;
     _turmaService        = turmaService;
     _alunoService        = alunoService;
     _aluno_Turma_Service = aluno_Turma_Service;
     _professorService    = professorService;
 }
Exemplo n.º 7
0
 public AlunoTeste(IAlunoService alunoService, ITurmaService turmaService,
                   IAtividadeService atividadeService, IAtividade_TurmaService atividade_TurmaService,
                   IResposta_AtividadeService resposta_AtividadeService)
 {
     _alunoService              = alunoService;
     _turmaService              = turmaService;
     _atividade_TurmaService    = atividade_TurmaService;
     _resposta_AtividadeService = resposta_AtividadeService;
 }
Exemplo n.º 8
0
 public MainWindowViewModel(IDialogCoordinator dialog)
 {
     this.dialog       = dialog;
     alunoService      = new AlunoService(new AlunoRepository());
     IncluirCommand    = new DelegateCommand(Incluir, () => !ModoEdicao).ObservesProperty(() => ModoEdicao);
     AlterarCommand    = new DelegateCommand(Alterar, () => ModoEdicao).ObservesProperty(() => ModoEdicao);
     ExcluirCommand    = new DelegateCommand(Excluir, () => ModoEdicao).ObservesProperty(() => ModoEdicao);
     LimparTelaCommand = new DelegateCommand(Limpar);
     BuscarAlunos();
 }
Exemplo n.º 9
0
 public EscolasController(IEscolaService escolaService, IAlunoService alunoService,
                          EscolaToEscolaDTOMapper escolaToEscolaDTOMapper,
                          EscolaDTOToEscolaMapper escolaDTOToEscolaMapper,
                          AlunoToAlunoDTOMapper alunoToAlunoDTOMapper,
                          AlunoDTOToAlunoMapper alunoDTOToAlunoMapper)
 {
     _escolaService           = escolaService;
     _escolaToEscolaDTOMapper = escolaToEscolaDTOMapper;
     _escolaDTOToEscolaMapper = escolaDTOToEscolaMapper;
 }
Exemplo n.º 10
0
        public AlunoServiceTest()
        {
            _unitOfWork = new Mock<IUnitOfWork>();

            _alunoRepository = new Mock<IAlunoRepository>();

            _turmaRepository = new Mock<ITurmaRepository>();

            _alunoService = new AlunoService(_alunoRepository.Object, _turmaRepository.Object, _unitOfWork.Object);
        }
 public AlunoController(IAlunoRepositorio alunoRepositorio,
                        IMapper mapper,
                        IAlunoService alunoService,
                        INotificador notificador,
                        IUser user) : base(notificador, user)
 {
     _alunoRepositorio = alunoRepositorio;
     _mapper           = mapper;
     _alunoService     = alunoService;
 }
Exemplo n.º 12
0
 public ProvaController(
     IProvaService provaService,
     IAlunoService alunoService,
     IAvaliacaoService avaliacaoService,
     UserManager <Usuario> _user) : base(_user)
 {
     _ProvaService    = provaService;
     _AlunoService    = alunoService;
     _AvalicaoService = avaliacaoService;
 }
Exemplo n.º 13
0
 public ProfessorController(IQuizzService service,
                            UserManager <Usuario> user, IPerguntaService perguntaService,
                            IAlunoService alunoService, IRespostaService respostaService)
 {
     _userManager      = user;
     _service          = service;
     _respostaService  = respostaService;
     _estudanteService = alunoService;
     _PerguntaService  = perguntaService;
 }
Exemplo n.º 14
0
 public AlunosController(IMapper mapper,
                         IAlunoService alunoService,
                         IAvaliadorService avaliadorService,
                         ICriterioService criterioService,
                         IAvaliacaoService avaliacaoService)
 {
     _mapper           = mapper;
     _alunoService     = alunoService;
     _avaliadorService = avaliadorService;
     _criterioService  = criterioService;
     _avaliacaoService = avaliacaoService;
 }
Exemplo n.º 15
0
        public AlunosController(IAlunoService alunoService, IMapper mapper, IUser appUser)
        {
            _alunoService = alunoService;
            _mapper       = mapper;
            AppUser       = appUser;

            if (AppUser.IsAuthenticated())
            {
                UsuarioId          = appUser.GetUserId();
                UsuarioAutenticado = true;
            }
        }
Exemplo n.º 16
0
 public LoginController(SignInManager <Usuario> signInManager,
                        UserManager <Usuario> userManager,
                        RoleManager <IdentityRole> roleManager,
                        IProfessorService service,
                        IAlunoService alunoService
                        )
 {
     _signInManager    = signInManager;
     _userManager      = userManager;
     _roleManager      = roleManager;
     _professorService = service;
     _alunoService     = alunoService;
 }
Exemplo n.º 17
0
        public AlunoDataManager()
        {
            var unitOfWork = Injection.Get<IUnitOfWork>();

            var alunoRepository = Injection.Get<IAlunoRepository>();

            var turmaRepository = Injection.Get<ITurmaRepository>();

            _turmaService = new TurmaService(turmaRepository, unitOfWork);

            _alunoService = new AlunoService(alunoRepository, turmaRepository, unitOfWork);

            _control = new AlunoControl(_alunoService);
        }
Exemplo n.º 18
0
        public AlunoDataManager()
        {
            var unitOfWork = Injection.Get <IUnitOfWork>();

            var alunoRepository = Injection.Get <IAlunoRepository>();

            var turmaRepository = Injection.Get <ITurmaRepository>();

            _turmaService = new TurmaService(turmaRepository, unitOfWork);

            _alunoService = new AlunoService(alunoRepository, turmaRepository, unitOfWork);

            _control = new AlunoControl(_alunoService);
        }
Exemplo n.º 19
0
 public RegisterModel(
     UserManager <Usuario> userManager,
     SignInManager <Usuario> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     ITurmaRepository turmaRepository,
     IAlunoService alunoService)
 {
     _userManager     = userManager;
     _signInManager   = signInManager;
     _logger          = logger;
     _emailSender     = emailSender;
     _alunoService    = alunoService;
     _turmaRepository = turmaRepository;
 }
Exemplo n.º 20
0
        public AlunoDataManager()
        {
            var factory = new DatabaseFactory();

            var unitOfWork = new UnitOfWork(factory);

            var alunoRepository = new AlunoRepository(factory);

            var turmaRepository = new TurmaRepository(factory);

            _turmaService = new TurmaService(turmaRepository, unitOfWork);

            _alunoService = new AlunoService(alunoRepository, turmaRepository, unitOfWork);

            _control = new AlunoControl(_alunoService);
        }
Exemplo n.º 21
0
 public AlunoController(
     IQuizzService service,
     IAlunoService alunoService,
     IRespostaService respostaService,
     IPerguntaService perguntaService,
     IViewRenderService viewRender,
     IPdfGeneratorService pdfGenerator,
     UserManager <Usuario> userManager)
 {
     _serviceQuizz      = service;
     _alunoService      = alunoService;
     _respostaService   = respostaService;
     _perguntaService   = perguntaService;
     _userManager       = userManager;
     _pdfService        = pdfGenerator;
     _viewRenderService = viewRender;
 }
Exemplo n.º 22
0
        public AlunoDialog(IEnumerable<TurmaDTO> turmas)
        {
            var unitOfWork = Injection.Get<IUnitOfWork>();

            var alunoRepository = Injection.Get<IAlunoRepository>();

            var turmaRepository = Injection.Get<ITurmaRepository>();

            _alunoService = new AlunoService(alunoRepository, turmaRepository, unitOfWork);

            InitializeComponent();

            cmbTurmas.Items.Clear();

            foreach (var turma in turmas)
            {
                cmbTurmas.Items.Add(turma);
            }
        }
Exemplo n.º 23
0
        public AlunoDialog(IEnumerable <TurmaDTO> turmas)
        {
            var unitOfWork = Injection.Get <IUnitOfWork>();

            var alunoRepository = Injection.Get <IAlunoRepository>();

            var turmaRepository = Injection.Get <ITurmaRepository>();

            _alunoService = new AlunoService(alunoRepository, turmaRepository, unitOfWork);

            InitializeComponent();

            cmbTurmas.Items.Clear();

            foreach (var turma in turmas)
            {
                cmbTurmas.Items.Add(turma);
            }
        }
Exemplo n.º 24
0
        public Principal()
        {
            InitializeComponent();

            _instance = this;

            var unitOfWork = Injection.Get <IUnitOfWork>();

            var alunoRepository = Injection.Get <IAlunoRepository>();

            var turmaRepository = Injection.Get <ITurmaRepository>();

            _turmaService = new TurmaService(turmaRepository, unitOfWork);

            _alunoService = new AlunoService(alunoRepository, turmaRepository, unitOfWork);

            AtualizaListaTurmas();

            SelecionaTurmaAnoAtual();
        }
Exemplo n.º 25
0
        public Principal()
        {
            InitializeComponent();

            _instance = this;

            var unitOfWork = Injection.Get<IUnitOfWork>();

            var alunoRepository = Injection.Get<IAlunoRepository>();

            var turmaRepository = Injection.Get<ITurmaRepository>();

            _turmaService = new TurmaService(turmaRepository, unitOfWork);

            _alunoService = new AlunoService(alunoRepository, turmaRepository, unitOfWork);

            AtualizaListaTurmas();

            SelecionaTurmaAnoAtual();
        }
Exemplo n.º 26
0
        public void initialize()
        {
            AlunoService = new AlunoService(
                AlunoRepository.Object,
                TurmaRepository.Object,
                UnitOfWork.Object
                );

            AulaService = new AulaService(
                AulaRepository.Object,
                AlunoRepository.Object,
                TurmaRepository.Object,
                UnitOfWork.Object
                );

            TurmaService = new TurmaService(
                TurmaRepository.Object,
                UnitOfWork.Object
                );
        }
 public NotasController(INotasRepositorio notaRepositorio,
                        IMapper mapper,
                        INotificador notificador,
                        IAlunoRepositorio alunoRepositorio,
                        IDisciplinasRepositorio disciplinasRepositorio,
                        IHostingEnvironment env,
                        INotasService notaService,
                        IAlunoService alunoService,
                        IDisciplinasService disciplinasService,
                        IUser user) : base(notificador, user)
 {
     _notaRepositorio        = notaRepositorio;
     _disciplinasRepositorio = disciplinasRepositorio;
     _env                = env;
     _mapper             = mapper;
     _notaService        = notaService;
     _disciplinasService = disciplinasService;
     _alunoRepositorio   = alunoRepositorio;
     _alunoService       = alunoService;
 }
Exemplo n.º 28
0
        public AlunoDialog(IEnumerable<TurmaDTO> turmas)
        {
            var factory = new DatabaseFactory();

            var unitOfWork = new UnitOfWork(factory);

            var alunoRepository = new AlunoRepository(factory);

            var turmaRepository = new TurmaRepository(factory);

            _alunoService = new AlunoService(alunoRepository, turmaRepository, unitOfWork);

            InitializeComponent();

            cmbTurmas.Items.Clear();

            foreach (var turma in turmas)
            {
                cmbTurmas.Items.Add(turma);
            }
        }
Exemplo n.º 29
0
        public Principal()
        {
            InitializeComponent();

            _instance = this;

            var factory = new DatabaseFactory();

            var unitOfWork = new UnitOfWork(factory);

            var turmaRepository = new TurmaRepository(factory);

            var alunoRepository = new AlunoRepository(factory);

            _turmaService = new TurmaService(turmaRepository, unitOfWork);

            _alunoService = new AlunoService(alunoRepository, turmaRepository, unitOfWork);

            AtualizaListaTurmas();

            SelecionaTurmaAnoAtual();
        }
 public AlunoAppService(IAlunoService alunoService, IUnitOfWork uow)
     : base(uow)
 {
     _alunoService = alunoService;
 }
Exemplo n.º 31
0
 public AlunoController(IAlunoService alunoService) => _alunoService = alunoService;
Exemplo n.º 32
0
 public AlunoApplication(IAlunoService service)
     : base(service)
 {
     _service = service;
 }
Exemplo n.º 33
0
 public AlunosController(IAlunoService service)
 {
     _service = service;
 }
 public AlunoController(IAlunoService contratanetAluno)
 {
     ContratanetAluno = contratanetAluno;
 }
Exemplo n.º 35
0
 public AlunoControl(IAlunoService _service)
     : this()
 {
     this._alunoService = _service;
 }
Exemplo n.º 36
0
 public AlunoAppService(IAlunoService alunoService, IUnitOfWork uow)
     : base(uow)
 {
     _alunoService = alunoService;
 }
 public AlunoController(IAlunoService service)
 {
     this.service = service;
 }
Exemplo n.º 38
0
 public AlunoController(IAlunoService alunoService, IDiarioDeNotaService diarioDeNotaService)
 {
     _alunoService        = alunoService;
     _diarioDeNotaService = diarioDeNotaService;
 }
Exemplo n.º 39
0
 public AlunoAppService(IAlunoService alunoService, IUnitOfWork unitOfWork, ApplicationUserManager userManager)
     : base(unitOfWork)
 {
     _alunoService = alunoService;
     _userManager  = userManager;
 }
Exemplo n.º 40
0
 public DiarioDeNotaController(IDiarioDeNotaService diarioService, IAlunoService alunoService)
 {
     _diarioService = diarioService;
     _alunoService  = alunoService;
 }