public JsonResult Get()
        {
            var    Endereco = _EnderecoService.FindAll();
            string json     = JsonConvert.SerializeObject(Endereco);

            return(Json(json));
        }
Beispiel #2
0
        public void FindAllSucess()
        {
            _enderecoRepository.Setup(x => x.FindAll()).Returns(EnderecoMock.GetEnderecos());

            var result = _enderecoService.FindAll();

            Assert.IsNotNull(result);
        }
Beispiel #3
0
        public IActionResult Index()
        {
            var list = _enderecoService.FindAll();

            return(View(list));
        }