Example #1
0
 public void SetUp()
 {
     _viaCepService      = new ViaCepService();
     _enderecoRequisicao = new EnderecoRequisicao
     {
         UF         = UF.RS,
         Cidade     = "Porto Alegre",
         Logradouro = "Olavo"
     };
 }
Example #2
0
        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;
 }
Example #4
0
 internal ViaCepFluentPorCep(Cep cep)
 {
     _cep           = cep;
     _viaCepService = new ViaCepService();
 }
Example #5
0
 public ApplicationTestController(IViaCepService viaCepService, IEnderecoService enderecoService)
 {
     this.viaCepService   = viaCepService;
     this.enderecoService = enderecoService;
 }
Example #6
0
 public EnderecoService(IEnderecoRepository enderecoRepository, IViaCepService viaCepService)
 {
     this.enderecoRepository = enderecoRepository;
     this.viaCepService      = viaCepService;
 }
Example #7
0
 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;
 }
Example #11
0
 public ClientController(IViaCepService viaCepService, IClientRepository <Client> clientRepository)
 {
     this.viaCepService    = viaCepService;
     this.clientRepository = clientRepository;
 }
Example #12
0
 public DriversController(IMovtechAPIService movtechAPIService, IViaCepService viaCepService)
 {
     _movtechAPIService = movtechAPIService;
     _viaCepService     = viaCepService;
 }