public GeocodeLocator GetRestarauntDetails(string LocalityVerbose)
        {
            //RetrauntSearchForTableBooking restrauntFinderForTableBooking = new RetrauntSearchForTableBooking();
            RestarauntGeocodeLocator restarauntGeocodeLocator = new RestarauntGeocodeLocator();

            return(restarauntGeocodeLocator.GetRestarauntGeocodeCoordinates(LocalityVerbose));
        }
コード例 #2
0
        public void when_Given_Valid_LocalityVerbose()
        {
            //given
            string        CityVerbose = "Rajiv Chowk Delhi";
            List <double> actual      = new List <double>()
            {
                77.22063, 28.63357
            };
            //when
            List <double> expected = new List <double>()
            {
            };
            RestrauntSearchController restrauntSearch          = new RestrauntSearchController();
            RestarauntGeocodeLocator  restarauntGeocodeLocator = new RestarauntGeocodeLocator();

            expected.Add(restarauntGeocodeLocator.GetRestarauntGeocodeCoordinates(CityVerbose).Longitude);
            expected.Add(restarauntGeocodeLocator.GetRestarauntGeocodeCoordinates(CityVerbose).Latitude);

            //then
            Assert.Equal(expected, actual);
        }
コード例 #3
0
        public void when_given_invalid_LocalityVerbose()
        {
            //given
            string        CityVerbose = "gsdhjsdfbhjdfhdvsjf bbmcdsbbhjb";
            List <double> actual      = new List <double>()
            {
                0.00, 0.00
            };
            //when

            List <double> expected = new List <double>()
            {
            };
            RestrauntSearchController restrauntSearch          = new RestrauntSearchController();
            RestarauntGeocodeLocator  restarauntGeocodeLocator = new RestarauntGeocodeLocator();

            expected.Add(restarauntGeocodeLocator.GetRestarauntGeocodeCoordinates(CityVerbose).Longitude);
            expected.Add(restarauntGeocodeLocator.GetRestarauntGeocodeCoordinates(CityVerbose).Latitude);

            //then
            Assert.Equal(expected, actual);
        }