Exemple #1
0
 public TaxaJurosController(ITaxaJurosService taxaJurosService,
                            IMapper mapper,
                            IRequestNotificator notifications) : base(notifications)
 {
     _taxaJurosService = taxaJurosService;
     _mapper           = mapper;
 }
Exemple #2
0
 public TaxaJurosController(ILogger <TaxaJurosController> logger,
                            IValidationErrorService validationErrorService,
                            ITaxaJurosService taxaJurosService)
 {
     _logger = logger;
     _validationErrorService = validationErrorService ?? throw new ArgumentNullException(nameof(validationErrorService));
     _taxaJurosService       = taxaJurosService ?? throw new ArgumentNullException(nameof(taxaJurosService));
 }
        public async Task <ActionResult> Get([FromServices] ITaxaJurosService service)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            try
            {
                return(Ok(await service.Get()));
            }
            catch (ArgumentException e)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError, e.Message));
            }
        }
Exemple #4
0
 public TaxaJurosController(ITaxaJurosService taxaJuros)
 {
     _taxaJuros = taxaJuros;
 }
 public TaxaJurosSeviceTests()
 {
     _sut = new TaxaJurosService(_parameters);
 }
 public JurosService(ITaxaJurosService service)
 {
     _service = service;
 }
 public TaxaJurosController(ITaxaJurosService service)
 {
     _service = service;
 }
 public TaxaJurosAppService(ITaxaJurosService service)
 {
     _service = service;
 }
 public TaxaJurosController(ITaxaJurosService taxaJurosService)
 {
     _taxaJurosService = taxaJurosService;
 }
Exemple #10
0
 public CalculoJurosController(ITaxaJurosService taxaJurosService,
                               ILogger <CalculoJurosController> logger)
 {
     _taxaJurosService = taxaJurosService;
     _logger           = logger;
 }
Exemple #11
0
 public CalculaJurosController(ICalculaJurosService calculaJurosService, ITaxaJurosService taxaJurosService)
 {
     _calculaJurosService = calculaJurosService;
     _taxaJurosService    = taxaJurosService;
 }
 public TaxaJurosAppService(ITaxaJurosService taxaJurosService)
 {
     _taxaJurosService = taxaJurosService;
 }
Exemple #13
0
 public CalcularTaxaJuros(ITaxaJurosService service)
 {
     _service = service;
 }
 public TaxaJurosApplication(ITaxaJurosService taxaJurosService)
 {
     _taxaJurosService = taxaJurosService;
 }
 public TaxaJurosTest()
 {
     _taxaJurosService = new TaxaJurosService();
 }
Exemple #16
0
 public void Setup()
 {
     _taxaJurosService = Substitute.For <ITaxaJurosService>();
     _taxaJurosService.ObterTaxaDeJuros().Returns(0.01d);
 }
 public TaxaJurosController(ITaxaJurosService _iTaxaJurosService)
 {
     iTaxaJurosService = _iTaxaJurosService;
 }
Exemple #18
0
 public CalcularTaxaJurosCommandHandler(ITaxaJurosService taxaJurosService)
 {
     _taxaJurosService = taxaJurosService;
 }
 public CalculaJurosService(ITaxaJurosService taxaJurosService)
 {
     _taxaJurosService = taxaJurosService;
 }
 public UnityTests()
 {
     _showMeTheCode       = new ShowMeTheCode();
     _taxaJurosService    = new TaxaJurosService();
     _calculoJurosService = new CalculoJurosService();
 }
Exemple #21
0
 public TaxaJurosController(ILogger <TaxaJurosController> logger,
                            ITaxaJurosService taxaJurosService)
 {
     _logger           = logger;
     _taxaJurosService = taxaJurosService;
 }
 public TaxaJurosController(ITaxaJurosService service, ITaxaJurosConfiguration config)
 {
     _service = service;
     _config  = config;
 }