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); }
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); }
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); }