Exemplo n.º 1
0
        public OfertaTeste()
        {
            _ofertas = PreencherLista(5);
            _oferta  = _ofertas.First();

            _ofertaRepository = new Mock <IOfertaRepository>();
            _ofertaService    = new OfertaService(_ofertaRepository.Object);
        }
Exemplo n.º 2
0
        public async Task <ObterOfertaResponseViewModel> ObterAsync(int id)
        {
            Domain.Entities.Oferta.Oferta response = await _ofertaService.ObterPorIdAsync(id);

            return((ObterOfertaResponseViewModel)response);
        }
Exemplo n.º 3
0
        public ObterOfertaResponseViewModel Obter(int id)
        {
            Domain.Entities.Oferta.Oferta response = _ofertaService.ObterPorId(id);

            return((ObterOfertaResponseViewModel)response);
        }