Exemple #1
0
 public IActionResult ListaUbs(double latitude, double longitude)
 {
     try
     {
         return(Ok(_ubsService.BucarUbsProximas(latitude, longitude)));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
        public void UbsService_RetornoUbs_DeveSerTrue()
        {
            mock = Substitute.For <IUbsService>();

            UbsDto ubs = new UbsDto("joão da Silva, 252, sao paulo", "Empresa XYZ", UbsAvaliacao.Bom);

            List <UbsDto> ubsLista = new List <UbsDto>();

            ubsLista.Add(ubs);

            mock.BucarUbsProximas(LAT, LO).Returns(ubsLista);
        }