コード例 #1
0
        public TurmaServiceTest()
        {
            _ioC         = new IoC();
            _commonTests = new GymCommonTests(ioC: _ioC);

            _turmaService = _ioC.Resolve <ITurmaService>();
        }
コード例 #2
0
ファイル: TurmaController.cs プロジェクト: Corothigo13/LDSI
 public TurmaController(ITurmaService turmaService,
                        ITurmaRepository turmaRepository,
                        UserManager <Usuario> _user) : base(_user)
 {
     _turmaService    = turmaService;
     _turmaRepository = turmaRepository;
 }
コード例 #3
0
        public TurmaServiceTest()
        {
            _unitOfWork = new Mock<IUnitOfWork>();

            _turmaRepository = new Mock<ITurmaRepository>();

            _turmaService = new TurmaService(_turmaRepository.Object, _unitOfWork.Object);
        }
コード例 #4
0
 public TurmaApplicationServiceBase(ITurmaService service, IUnitOfWork uow, ICache cache, CurrentUser user) :
     base(service, uow, cache)
 {
     base.SetTagNameCache("Turma");
     this._validatorAnnotations = new ValidatorAnnotations <TurmaDto>();
     this._service = service;
     this._user    = user;
 }
コード例 #5
0
 public ProfessorTeste(IProfessorService professorService,
                       IAtividadeService atividadeService,
                       IAtividade_TurmaService atividade_TurmaService,
                       ITurmaService turmaService,
                       IQuestaoService questaoService,
                       IOpcaoService opcaoService, IOpcao_CorretaService opcao_CorretaService)
 {
     TestaProfessor();
 }
コード例 #6
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;
 }
コード例 #7
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;
 }
コード例 #8
0
 public AtividadeTurmaController(UserManager <ApplicationUser> userManager, ITurmaService turmaService,
                                 IProfessorService professorService, IAtividadeService atividadeService, IAtividade_TurmaService atividadeTurmaService)
 {
     _userManager           = userManager;
     _turmaService          = turmaService;
     _professorService      = professorService;
     _atividadeService      = atividadeService;
     _atividadeTurmaService = atividadeTurmaService;
 }
コード例 #9
0
 public TurmaController(INotificador notificador,
                        ITurmaRepository turmaRepository,
                        ITurmaService turmaService,
                        IMapper mapper,
                        IUser user) : base(notificador, user)
 {
     _turmaRepository = turmaRepository;
     _turmaService    = turmaService;
     _mapper          = mapper;
 }
コード例 #10
0
        public void Initialize()
        {
            var _factory = new AdoNetFactory();//Container.Get<UnitOfWorkFactory>();

            _uow = new ADOUnitOfWork(_factory);//Container.Get<IUnitOfWork>();

            _repo = Container.Get<ITurmaRepository>();//new TurmaRepositorySql(_factory);

            _turmaService = new TurmaService(_repo, _uow);
        }
コード例 #11
0
        public TurmaDataManager()
        {
            var unitOfWork = Injection.Get<IUnitOfWork>();

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

            _turmaService = new TurmaService(turmaRepository, unitOfWork);

            _control = new TurmaControl(_turmaService);
        }
コード例 #12
0
        public TurmaDataManager()
        {
            var unitOfWork = Injection.Get <IUnitOfWork>();

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

            _turmaService = new TurmaService(turmaRepository, unitOfWork);

            _control = new TurmaControl(_turmaService);
        }
コード例 #13
0
 public TurmasController(ITurmaService turmaService, TurmaToTurmaDTOMapper turmaToTurmaDTOMapper,
                         TurmaDTOToTurmaMapper turmaDTOToTurmaMapper, TurmaToTurmaCompletoDTOMapper turmaToTurmaCompletoDTOMapper,
                         DisciplinaToDisciplinaDTOMapper disciplinaToDisciplinaDTOMapper, AlunoToAlunoDTOMapper alunoToAlunoDTOMapper)
 {
     _turmaService                    = turmaService;
     _turmaToTurmaDTOMapper           = turmaToTurmaDTOMapper;
     _turmaDTOToTurmaMapper           = turmaDTOToTurmaMapper;
     _turmaToTurmaCompletoDTOMapper   = turmaToTurmaCompletoDTOMapper;
     _disciplinaToDisciplinaDTOMapper = disciplinaToDisciplinaDTOMapper;
     _alunoToAlunoDTOMapper           = alunoToAlunoDTOMapper;
 }
コード例 #14
0
 public PublicacaoController(IPublicacaoService publicacaoService,
                             ITurmaService turmaService,
                             IAvaliacaoService avaliacaoService,
                             IPublicacaoRepository publicacaoRepository,
                             UserManager <Usuario> user) : base(user)
 {
     _turmaService         = turmaService;
     _publicacaoRepository = publicacaoRepository;
     _avaliacaoService     = avaliacaoService;
     _publicacaoService    = publicacaoService;
 }
コード例 #15
0
        public ProvaController(IAvaliacaoService avaliacaoService,
                               ITurmaService turmaService,
                               IProvaService provaService,
                               UserManager <Usuario> user) : base(user)
        {
            _turmaService = turmaService;

            _avaliacaoService = avaliacaoService;

            _provaService = provaService;
        }
コード例 #16
0
        public TurmaDataManager()
        {
            var factory = new DatabaseFactory();

            var unitOfWork = new UnitOfWork(factory);

            var turmaRepository = new TurmaRepository(factory);

            _turmaService = new TurmaService(turmaRepository, unitOfWork);

            _control = new TurmaControl(_turmaService);
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #19
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);
        }
コード例 #20
0
 public Teste(IProfessorService professorService,
              IAtividadeService atividadeService,
              IAtividade_TurmaService atividade_TurmaService,
              ITurmaService turmaService,
              IQuestaoService questaoService,
              IOpcaoService opcaoService, IOpcao_CorretaService opcao_CorretaService)
 {
     _professorService       = professorService;
     _atividadeService       = atividadeService;
     _atividade_TurmaService = atividade_TurmaService;
     _turmaService           = turmaService;
     _questaoService         = questaoService;
     _opcaoService           = opcaoService;
     _opcao_CorretaService   = opcao_CorretaService;
     ProfessorTeste professor = new ProfessorTeste(_professorService,
                                                   _atividadeService, _atividade_TurmaService, _turmaService, _questaoService,
                                                   _opcaoService, _opcao_CorretaService);
 }
コード例 #21
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();
        }
コード例 #22
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();
        }
コード例 #23
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
                );
        }
コード例 #24
0
ファイル: Principal.cs プロジェクト: thiagosartor/Diario
        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();
        }
コード例 #25
0
 public AlunoController(IAlunoService alunoService, ITurmaService turmaService)
 {
     _alunoService = alunoService;
     _turmaService = turmaService;
 }
コード例 #26
0
 public TurmaApplicationService(ITurmaService service, IUnitOfWork uow, ICache cache, CurrentUser user) :
     base(service, uow, cache, user)
 {
 }
コード例 #27
0
 public TurmaAppService(ITurmaService service, IMapper mapper) : base(service, mapper)
 {
     this.service = service;
     this.mapper  = mapper;
 }
コード例 #28
0
 public TurmaController(ITurmaService turmaService)
 {
     service = turmaService;
 }
コード例 #29
0
ファイル: TurmaController.cs プロジェクト: Artbraga/api-ctep
 public TurmaController(ITurmaService TurmaService)
 {
     this.TurmaService = TurmaService;
 }
コード例 #30
0
 public TurmasController(ITurmaService service)
 {
     this._service = service;
 }
コード例 #31
0
 public TurmaControl(ITurmaService turmaService) : this()
 {
     _turmaService = turmaService;
 }
コード例 #32
0
 public TurmaController(ITurmaService service)
 {
     _service = service;
 }
コード例 #33
0
 public TurmaController()
 {
     _turmaService = new TurmaService(TurmaRepository, Uow);
 }
コード例 #34
0
ファイル: TurmasController.cs プロジェクト: WeslleyF/Educar
 public TurmasController(ITurmaService _turmaService, IDisciplinaService _DisciplinaService)
 {
     this._turmaService      = _turmaService;
     this._DisciplinaService = _DisciplinaService;
 }
コード例 #35
0
 public TurmaControl(ITurmaService turmaService)
     : this()
 {
     _turmaService = turmaService;
 }
コード例 #36
0
 public TurmaController(ITurmaService service, ICursoService cursoService)
 {
     Service      = service;
     CursoService = cursoService;
 }
コード例 #37
0
 public TurmaAppService(ITurmaService turmaService)
 {
     _turmaService = turmaService;
 }
コード例 #38
0
 public TurmasController(ITurmaService turmaService, IUnitOfWork unitOfWork)
 {
     _turmaService = turmaService;
     _uow          = unitOfWork;
 }
コード例 #39
0
 public TurmaController(ITurmaService TurmaService, IMapper mapper)
 {
     _mapper       = mapper;
     _turmaService = TurmaService;
 }