Esempio n. 1
0
 public PagamentoService(IClienteService clienteService, IAssinaturaService assinaturaService, IPagamentoWriteOnlyRepository pagamentoWriteOnlyRepository, IPagamentoReadOnlyRepository pagamentoReadOnlyRepository)
 {
     this.clienteService               = clienteService ?? throw new System.ArgumentNullException(nameof(clienteService));
     this.assinaturaService            = assinaturaService ?? throw new System.ArgumentNullException(nameof(assinaturaService));
     this.pagamentoWriteOnlyRepository = pagamentoWriteOnlyRepository ?? throw new System.ArgumentNullException(nameof(pagamentoWriteOnlyRepository));
     this.pagamentoReadOnlyRepository  = pagamentoReadOnlyRepository ?? throw new ArgumentNullException(nameof(pagamentoReadOnlyRepository));
 }
Esempio n. 2
0
 public AlunoService(IAlunoRepository alunoRepository,
                     INotificator notificator,
                     IAssinaturaService assinaturaService) : base(notificator)
 {
     _alunoRepository   = alunoRepository;
     _assinaturaService = assinaturaService;
 }
Esempio n. 3
0
 public AssinaturasController(INotificator notificator,
                              IAssinaturaRepository assinaturaRepository,
                              IAssinaturaService assinaturaService,
                              IMapper mapper) : base(notificator)
 {
     _assinaturaRepository = assinaturaRepository;
     _assinaturaService    = assinaturaService;
     _mapper = mapper;
 }
Esempio n. 4
0
 public ClientesController(IClienteService clienteService, IAssinaturaService assinaturaService, IPagamentoService pagamentoService)
 {
     this.clienteService    = clienteService ?? throw new ArgumentNullException(nameof(clienteService));
     this.assinaturaService = assinaturaService ?? throw new ArgumentNullException(nameof(assinaturaService));
     this.pagamentoService  = pagamentoService ?? throw new ArgumentNullException(nameof(pagamentoService));
 }