コード例 #1
0
        public void Transaction_Test()
        {
            var factory = new AdoNetFactory();

            var uow = new ADOUnitOfWork(factory);

            var turmaRepository = new TurmaRepositorySql(factory);
        }
コード例 #2
0
        public override void Initialize()
        {
            base.Initialize();

            Factory = new AdoNetFactory();

            Uow = new ADOUnitOfWork(Factory);

            new DatabaseTestInitializer(Uow, Factory);

            AlunoRepository    = new AlunoRepositorySql(Factory);
            TurmaRepository    = new TurmaRepositorySql(Factory);
            AulaRepository     = new AulaRepositorySql(Factory);
            PresencaRepository = new PresencaRepositorySql(Factory);
        }