Exemple #1
0
 public CarrinhoController(ICarrinhoRepository carrinhoRepository,
                           IMediatorHandler mediator, IMapper mapper)
 {
     _carrinhoRepository = carrinhoRepository;
     _mediator           = mediator;
     _mapper             = mapper;
 }
 public ItemCompraController(
     IHawkRepository <ItemCompra> repository,
     ICarrinhoRepository repositoryCarrinho
     )
 {
     this.repository         = repository;
     this.repositoryCarrinho = repositoryCarrinho;
 }
Exemple #3
0
 public HomeController(ICarrinhoRepository carrinhoRepository,
                       IProdutoRepository produtoRepository,
                       UserManager <AppIdentityUser> userManager)
 {
     this.carrinhoRepository = carrinhoRepository;
     this.produtoRepository  = produtoRepository;
     this.userManager        = userManager;
 }
Exemple #4
0
 public CarrinhoService(ICarrinhoRepository carrinhoRepository, ILivroService livroService,
                        IPagamentoCartaoApiAdapter pagamentoAdapter, IAuditoriaApiAdapter auditoriaApiAdapter)
 {
     this.carrinhoRepository  = carrinhoRepository ?? throw new ArgumentNullException(nameof(carrinhoRepository));
     this.livroService        = livroService ?? throw new ArgumentNullException(nameof(livroService));
     this.pagamentoAdapter    = pagamentoAdapter ?? throw new ArgumentNullException(nameof(pagamentoAdapter));
     this.auditoriaApiAdapter = auditoriaApiAdapter ?? throw new ArgumentNullException(nameof(auditoriaApiAdapter));
 }
 public HomeController(IPedidoRepository pedidoRepository,
                       ICarrinhoRepository carrinhoRepository,
                       UserManager <AppIdentityUser> userManager)
 {
     this.pedidoRepository   = pedidoRepository;
     this.carrinhoRepository = carrinhoRepository;
     this.userManager        = userManager;
 }
 public CarrinhoCommandHandler(IUnitOfWork uow,
                               INotificationHandler <DomainNotification> notifications,
                               IMediatorHandler mediator,
                               ICarrinhoRepository carrinhoRepository) : base(uow, mediator, notifications)
 {
     _mediator           = mediator;
     _carrinhoRepository = carrinhoRepository;
 }
Exemple #7
0
 public CarrinhoController(ICarrinhoRepository repository
                           , IIdentityService identityService
                           , IBus bus
                           )
 {
     _repository      = repository;
     _identityService = identityService;
     _bus             = bus;
 }
Exemple #8
0
        public void Setup()
        {
            var settings = ObterSettings();

            _carrinhoRepository = new CarrinhoRepository(settings);
            _produtoRepository  = new ProdutoRepository(settings);
            _carrinhoService    = new CarrinhoService(_carrinhoRepository, _produtoRepository);
            _produtoService     = new ProdutoService(_produtoRepository);
        }
Exemple #9
0
 public GerarPedidoUseCase(
     ICarrinhoRepository CarrinhoRepository,
     CarrinhoService CarrinhoService,
     IGerarPedidoSaidaPort GerarPedidoSaidaPort,
     IUnitOfWork unitOfWork)
 {
     _CarrinhoRepository   = CarrinhoRepository;
     _CarrinhoService      = CarrinhoService;
     _GerarPedidoSaidaPort = GerarPedidoSaidaPort;
     _unitOfWork           = unitOfWork;
 }
Exemple #10
0
 public IncluirLivroNoCarrinhoUseCase(
     ICarrinhoRepository CarrinhoRepository,
     CarrinhoService CarrinhoService,
     IIncluirLivroCarrinhoSaidaPort IncluirLivroCarrinhoSaidaPort,
     IUnitOfWork unitOfWork)
 {
     _CarrinhoRepository            = CarrinhoRepository;
     _CarrinhoService               = CarrinhoService;
     _IncluirLivroCarrinhoSaidaPort = IncluirLivroCarrinhoSaidaPort;
     _unitOfWork = unitOfWork;
 }
Exemple #11
0
 public RemoverLivroDoCarrinhoUseCase(
     ICarrinhoRepository CarrinhoRepository,
     CarrinhoService CarrinhoService,
     IRemoverLivroCarrinhoSaidaPort RemoverLivroCarrinhoSaidaPort,
     IUnitOfWork unitOfWork)
 {
     _CarrinhoRepository            = CarrinhoRepository;
     _CarrinhoService               = CarrinhoService;
     _RemoverLivroCarrinhoSaidaPort = RemoverLivroCarrinhoSaidaPort;
     _unitOfWork = unitOfWork;
 }
Exemple #12
0
        public CarrinhoController(ICarrinhoRepository repository
                                  , IIdentityService identityService
                                  , IBus bus
                                  , ILogger <CarrinhoController> logger
                                  , IConfiguration configuration)
        {
            _repository      = repository;
            _identityService = identityService;
            _bus             = bus;
            _logger          = logger;
            _configuration   = configuration;

            SetupSignalRConnection();
        }
Exemple #13
0
 public CheckoutService(
     ICarrinhoRepository carrinhoRepository,
     IFreteRepository freteRepository,
     IAutenticacaoService autenticacaoService,
     IPagamentoService pagamentoService,
     IMensageriaService mensageriaService,
     ILoggerService loggerService)
 {
     _carrinhoRepository  = carrinhoRepository;
     _freteRepository     = freteRepository;
     _autenticacaoService = autenticacaoService;
     _pagamentoService    = pagamentoService;
     _mensageriaService   = mensageriaService;
     _loggerService       = loggerService;
 }
 public CarrinhoAppService(IRepositoryBase <Carrinho> repositoryBase) : base(repositoryBase)
 {
     _carrinhoRepository = repositoryBase as ICarrinhoRepository;
 }
Exemple #15
0
 public CarrinhoService(ICarrinhoFactory CarrinhoFactory, ICarrinhoRepository CarrinhoRepository)
 {
     _CarrinhoFactory    = CarrinhoFactory;
     _CarrinhoRepository = CarrinhoRepository;
 }
 public CasoAdicionarLivroCarrinho(ICarrinhoRepository carrinhoRepository)
 {
     _carrinhoRepository = carrinhoRepository;
 }
 public CriarCarrinhoUseCase(ICarrinhoRepository carrinhoRepo, IMapper mapper)
 {
     this.carrinhoRepo = carrinhoRepo;
     this.mapper       = mapper;
 }
 public CasoRemoverLivroCarrinho(ICarrinhoRepository carrinhoRepository)
 {
     _carrinhoRepository = carrinhoRepository;
 }
 public AdicionarProdutoAoCarrinhoCommandHandler(IHandler handler, ICarrinhoRepository carrinhoRepository) : base(handler)
 {
     this.carrinhoRepository = carrinhoRepository;
 }
Exemple #20
0
 public CarrinhoService(ICarrinhoRepository carrinhoRepository, IProdutoRepository produtoRepository)
 {
     _carrinhoRepository = carrinhoRepository;
     _produtoRepository  = produtoRepository;
 }
 public CarrinhoService(ICarrinhoRepository carrinhoRepository, ClienteService clienteService)
 {
     this.carrinhoRepository = carrinhoRepository;
     this.clienteService     = clienteService;
 }
Exemple #22
0
 public ObterItensCarrinhoUseCase(ICarrinhoRepository repoCarrinho, IMapper mapper)
 {
     _repoCarrinho = repoCarrinho;
     _mapper       = mapper;
 }
Exemple #23
0
 public CarrinhoController(IAspNetUser user, ICarrinhoRepository carrinhoRepository)
 {
     _user = user;
     _carrinhoRepository = carrinhoRepository;
 }
Exemple #24
0
 public CarrinhoBusinessImpl(ICarrinhoRepository repository)
 {
     _repository = repository;
 }
Exemple #25
0
 public IncluirItemCarrinhoUseCase(ICarrinhoRepository carrinhoRepo)
 {
     this.carrinhoRepo = carrinhoRepo;
 }
 public CasoGerarPedido(ICarrinhoRepository carrinhoRepository, IPedidoRepository pedidoRepository)
 {
     _carrinhoRepository = carrinhoRepository;
     _pedidoRepository   = pedidoRepository;
 }
Exemple #27
0
 public CarrinhoController(IMessageBus messageBus, ICarrinhoRepository carrinhoRepository)
 {
     this.messageBus         = messageBus;
     this.carrinhoRepository = carrinhoRepository;
 }
Exemple #28
0
 public CarrinhoController(ICarrinhoRepository repository)
 {
     this.repository = repository;
 }
Exemple #29
0
 public CarrinhoController(ICarrinhoRepository carrinhoRepository)
 {
     _carrinhoRepository = carrinhoRepository;
 }
 public CarrinhoService(ICarrinhoRepository carrinhoRepository)
 {
     _carrinhoRepository = carrinhoRepository;
 }