Exemplo n.º 1
0
        public DVDController()
        {
            DVDRepositoryMock mock = new DVDRepositoryMock();
            DVDRepositoryEF   ef   = new DVDRepositoryEF();
            DVDRepositoryADO  ado  = new DVDRepositoryADO();

            if (manager.newDVDRepository.GetType() == mock.GetType())
            {
                _repository = manager.newDVDRepository;
            }
            else if (manager.newDVDRepository.GetType() == ef.GetType())
            {
                _repository = ef;
            }
            else
            {
                _repository = ado;
            }
        }