示例#1
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);
        }
示例#2
0
        public void Initialize()
        {
            new BaseSQLTest();

            _factory = new AdoNetFactory();

            _uow = new ADOUnitOfWork(_factory);

            _repo = new TurmaRepositorySql(_factory);
        }
示例#3
0
        public void Initialize()
        {
            new BaseSQLTest();

            var factory = new AdoNetFactory();

            _uow = new ADOUnitOfWork(factory);

            _repoTurma = new TurmaRepositorySql(factory);

            _repoAula = new AulaRepositorySql(factory);
        }
 public TurmaRepositorySql(AdoNetFactory factory)
     : base(factory)
 {
 }
 public AlunoRepositorySql(AdoNetFactory factory)
     : base(factory)
 {
 }
 public PresencaRepositorySql(AdoNetFactory factory)
     : base(factory)
 {
 }
示例#7
0
 public AulaRepositorySql(AdoNetFactory factory)
     : base(factory)
 {
 }
示例#8
0
 public ADOUnitOfWork(AdoNetFactory factory)
 {
     _factory = factory;
 }