Exemplo n.º 1
0
        private DbConfig()
        {
            Conectar();

            this.EstabelecimentoRepository = new EstabelecimentoRepository(this.Session);
            this.QuartoRepository          = new QuartoRepository(this.Session);
            this.LocacaoRepository         = new LocacaoRepository(this.Session);
        }
Exemplo n.º 2
0
 public UnitOfWork(Context context)
 {
     _context = context;
     Ajustes  = new AjusteRepository(_context);
     Clientes = new ClienteRepository(_context);
     Locacoes = new LocacaoRepository(_context);
     Provas   = new ProvaRepository(_context);
     Vestidos = new VestidoRepository(_context);
 }
Exemplo n.º 3
0
        public void TestPostCliente()
        {
            LocacaoRepository locacaoRepository = new LocacaoRepository();
            Locacao           locacao           = new Locacao()
            {
                IdFilme   = 3,
                IdCliente = 1,
                DtEntrega = DateTime.Now
            };
            string mRetorno = locacaoRepository.Post(locacao);

            Assert.IsTrue(!String.IsNullOrEmpty(mRetorno));
        }
Exemplo n.º 4
0
 public LocacaoService(LocacaoRepository repo)
 {
     Repo = repo;
 }
Exemplo n.º 5
0
 public LocacaoService(LocacaoRepository repositoryLocacao)
 {
     _repositoryLocacao = repositoryLocacao;
 }
Exemplo n.º 6
0
 public void Setup()
 {
     _locacaoRepository = new LocacaoRepository();
 }
Exemplo n.º 7
0
 public void Setup()
 {
     _filmeRepository   = new FilmeRepository();
     _locacaoRepository = new LocacaoRepository();
     _reservaRepository = new ReservaRepository();
 }
Exemplo n.º 8
0
 public LocacaoBusiness()
 {
     _locacaoRepository = new LocacaoRepository();
 }