public DoacoesController(IDoacaoService doacaoService, IDomainNotificationService domainNotificationService) : base(domainNotificationService) { _doacaoService = doacaoService; _domainNotificationService = domainNotificationService; }
public BaseController( IDomainNotificationService domainNotificationService, IToastNotification toastNotification) { _domainNotificationService = domainNotificationService; _toastNotification = toastNotification; }
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; }
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; }
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; }
public NotificationTests(CreditCardFixture fixture) { ns = new DomainNotificationService(); fix = fixture; }
public DomainNotificationServiceTests(PessoaFixture fixture) { _pessoaFixture = fixture; _domainNotificationService = new DomainNotificationService(); }
public ValidationResultBuilder(IDomainNotificationService domainNotificationService, IJsonLocalization localization) { _domainNotificationService = domainNotificationService; _localization = localization; }
public BaseController(IDomainNotificationService domainNotificationService) { _domainNotificationService = domainNotificationService; }
public CommandHandler(IHandler handler, IDomainNotificationService notificationService) : base(handler) { _notificationService = notificationService; }