Exemplo n.º 1
0
 public DoacoesController(IDoacaoService doacaoService,
                          IDomainNotificationService domainNotificationService)
     : base(domainNotificationService)
 {
     _doacaoService             = doacaoService;
     _domainNotificationService = domainNotificationService;
 }
Exemplo n.º 2
0
 public BaseController(
     IDomainNotificationService domainNotificationService,
     IToastNotification toastNotification)
 {
     _domainNotificationService = domainNotificationService;
     _toastNotification         = toastNotification;
 }
Exemplo n.º 3
0
        public DonationControllerTest(DonationFixture donationFix, AddressFixture addressFix, CreditCardFixture creditFix)
        {
            credFix = creditFix;
            donFix  = donationFix;
            addFix  = addressFix;

            appConfig           = new Mock <GloballAppConfig>();
            donationRepository  = new Mock <IDoacaoRepository>();
            notificationService = new DomainNotificationService();
            toastNotification   = new Mock <IToastNotification>();
            polenService        = new Mock <IPaymentService>();
            logger = new Mock <ILogger <DoacoesController> >();
            mapper = new Mock <IMapper>();

            validDonation = donFix.Valid();
            validDonation.AdicionarFormaPagamento(credFix.Valid());
            validDonation.AdicionarEnderecoCobranca(addFix.Valid());

            validDonationVM = donFix.ValidVM();
            validDonationVM.EnderecoCobranca = addressFix.ValidVM();
            validDonationVM.FormaPagamento   = credFix.ValidVM();

            mapper.Setup(a => a.Map <DoacaoViewModel, Doacao>(validDonationVM)).Returns(validDonation);
            donationService = new DoacaoService(mapper.Object, donationRepository.Object, notificationService);
        }
 public DoacaoService(IMapper mapper,
                      IDoacaoRepository doacaoRepository,
                      IDomainNotificationService domainNotificationService)
 {
     _mapper                    = mapper;
     _doacaoRepository          = doacaoRepository;
     _domainNotificationService = domainNotificationService;
 }
Exemplo n.º 5
0
 public DonationController(
     IDonationService donationService,
     IDomainNotificationService domainNotificationService,
     IToastNotification toastNotification
     ) : base(domainNotificationService, toastNotification)
 {
     _donationService           = donationService;
     _domainNotificationService = domainNotificationService;
 }
 public ExcluirEmpresaCommandHandle(IHandler handler,
                                    IDomainNotificationService notificationService,
                                    IEmpresaReadRepository empresaReadRepository,
                                    IUnitOfWork unitOfWork,
                                    IMapper mapper) : base(handler, notificationService)
 {
     this.empresaReadRepository = empresaReadRepository;
     this.mapper     = mapper;
     this.unitOfWork = unitOfWork;
 }
Exemplo n.º 7
0
 public ExcluirProdutoCommandHandler(
     IHandler handler,
     IDomainNotificationService notificationService,
     IUnitOfWork unitOfWork,
     IMapper mapper,
     IProdutoReadRepository produtoReadRepository) : base(handler, notificationService)
 {
     this.mapper                = mapper;
     this.unitOfWork            = unitOfWork;
     this.produtoReadRepository = produtoReadRepository;
 }
 public InserirEditarProdutoCommandHandler(IHandler handler,
                                           IDomainNotificationService notificationService,
                                           IProdutoWriteRepository produtoWriteRepository,
                                           IProdutoReadRepository produtoReadRepository,
                                           IUnitOfWork unitOfWork,
                                           IMapper mapper) : base(handler, notificationService)
 {
     this.produtoWriteRepository = produtoWriteRepository;
     this.produtoReadRepository  = produtoReadRepository;
     this.unitOfWork             = unitOfWork;
     this.mapper = mapper;
 }
 public ExcluirUsuarioCommandHandle(IHandler handler,
                                    IDomainNotificationService notificationService,
                                    IUsuarioWriteRepository usuarioWriteRepository,
                                    IUsuarioReadRepository usuarioReadRepository,
                                    IUnitOfWork unitOfWork,
                                    IMapper mapper) : base(handler, notificationService)
 {
     this.usuarioWriteRepository = usuarioWriteRepository;
     this.usuarioReadRepository  = usuarioReadRepository;
     this.mapper     = mapper;
     this.unitOfWork = unitOfWork;
 }
 public DomainNotificationHandler(IDomainNotificationService domainNotificationService)
 {
     _domainNotificationService = domainNotificationService;
 }
Exemplo n.º 11
0
 public NotificationTests(CreditCardFixture fixture)
 {
     ns = new DomainNotificationService();
     fix = fixture;
 }
Exemplo n.º 12
0
 public DomainNotificationServiceTests(PessoaFixture fixture)
 {
     _pessoaFixture             = fixture;
     _domainNotificationService = new DomainNotificationService();
 }
Exemplo n.º 13
0
 public ValidationResultBuilder(IDomainNotificationService domainNotificationService,
                                IJsonLocalization localization)
 {
     _domainNotificationService = domainNotificationService;
     _localization = localization;
 }
Exemplo n.º 14
0
 public BaseController(IDomainNotificationService domainNotificationService)
 {
     _domainNotificationService = domainNotificationService;
 }
Exemplo n.º 15
0
 public CommandHandler(IHandler handler, IDomainNotificationService notificationService) : base(handler)
 {
     _notificationService = notificationService;
 }