public void SetUp() { _viaCepService = new ViaCepService(); _enderecoRequisicao = new EnderecoRequisicao { UF = UF.RS, Cidade = "Porto Alegre", Logradouro = "Olavo" }; }
public async Task <ActionResult <ViaCep> > GetByCep(int value, [FromServices] IViaCepService _viaCepService) { var viaCep = await _viaCepService.GetByCEPAsync(value); if (viaCep is null) { return(NotFound()); } return(Ok(viaCep)); }
public PutCotacaoCommandHandler(ICotacaoRepository cotacaoRepository , IMapper mapper , IMediator mediator , IViaCepService viaCepService ) { _cotacaoRepository = cotacaoRepository; _mapper = mapper; _mediator = mediator; _viaCepService = viaCepService; }
internal ViaCepFluentPorCep(Cep cep) { _cep = cep; _viaCepService = new ViaCepService(); }
public ApplicationTestController(IViaCepService viaCepService, IEnderecoService enderecoService) { this.viaCepService = viaCepService; this.enderecoService = enderecoService; }
public EnderecoService(IEnderecoRepository enderecoRepository, IViaCepService viaCepService) { this.enderecoRepository = enderecoRepository; this.viaCepService = viaCepService; }
public CepService(ICepRepository repository, IViaCepService viaCepService) { _repository = repository; _viaCepService = viaCepService; }
public CepController(IViaCepService viaCepService) { _viaCepService = viaCepService; }
internal ViaCepFluentPorEndereco(EnderecoRequisicao enderecoRequisicao) { _enderecoRequisicao = enderecoRequisicao; _viaCepService = new ViaCepService(); }
public MainPage(IViaCepService viaCepService) { this.viaCepService = viaCepService; InitializeComponent(); BOTAO.Clicked += BuscarEndereco; }
public ClientController(IViaCepService viaCepService, IClientRepository <Client> clientRepository) { this.viaCepService = viaCepService; this.clientRepository = clientRepository; }
public DriversController(IMovtechAPIService movtechAPIService, IViaCepService viaCepService) { _movtechAPIService = movtechAPIService; _viaCepService = viaCepService; }