Esempio n. 1
0
 public TaxaJurosController(ITaxaJurosService taxaJurosService,
                            IMapper mapper,
                            IRequestNotificator notifications) : base(notifications)
 {
     _taxaJurosService = taxaJurosService;
     _mapper           = mapper;
 }
Esempio n. 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));
            }
        }
Esempio n. 4
0
 public TaxaJurosController(ITaxaJurosService taxaJuros)
 {
     _taxaJuros = taxaJuros;
 }
Esempio n. 5
0
 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;
 }
Esempio n. 10
0
 public CalculoJurosController(ITaxaJurosService taxaJurosService,
                               ILogger <CalculoJurosController> logger)
 {
     _taxaJurosService = taxaJurosService;
     _logger           = logger;
 }
Esempio n. 11
0
 public CalculaJurosController(ICalculaJurosService calculaJurosService, ITaxaJurosService taxaJurosService)
 {
     _calculaJurosService = calculaJurosService;
     _taxaJurosService    = taxaJurosService;
 }
 public TaxaJurosAppService(ITaxaJurosService taxaJurosService)
 {
     _taxaJurosService = taxaJurosService;
 }
Esempio n. 13
0
 public CalcularTaxaJuros(ITaxaJurosService service)
 {
     _service = service;
 }
 public TaxaJurosApplication(ITaxaJurosService taxaJurosService)
 {
     _taxaJurosService = taxaJurosService;
 }
 public TaxaJurosTest()
 {
     _taxaJurosService = new TaxaJurosService();
 }
Esempio n. 16
0
 public void Setup()
 {
     _taxaJurosService = Substitute.For <ITaxaJurosService>();
     _taxaJurosService.ObterTaxaDeJuros().Returns(0.01d);
 }
 public TaxaJurosController(ITaxaJurosService _iTaxaJurosService)
 {
     iTaxaJurosService = _iTaxaJurosService;
 }
Esempio n. 18
0
 public CalcularTaxaJurosCommandHandler(ITaxaJurosService taxaJurosService)
 {
     _taxaJurosService = taxaJurosService;
 }
Esempio n. 19
0
 public CalculaJurosService(ITaxaJurosService taxaJurosService)
 {
     _taxaJurosService = taxaJurosService;
 }
Esempio n. 20
0
 public UnityTests()
 {
     _showMeTheCode       = new ShowMeTheCode();
     _taxaJurosService    = new TaxaJurosService();
     _calculoJurosService = new CalculoJurosService();
 }
Esempio n. 21
0
 public TaxaJurosController(ILogger <TaxaJurosController> logger,
                            ITaxaJurosService taxaJurosService)
 {
     _logger           = logger;
     _taxaJurosService = taxaJurosService;
 }
Esempio n. 22
0
 public TaxaJurosController(ITaxaJurosService service, ITaxaJurosConfiguration config)
 {
     _service = service;
     _config  = config;
 }