GetAllRestaurantsCompareLists() публичный Метод

public GetAllRestaurantsCompareLists ( ) : List
Результат List
Пример #1
0
        public void GetAllCompareListsFromDB()
        {
            OpenStreetMapServices osm = new OpenStreetMapServices();

            //act
            var allLists = osm.GetAllRestaurantsCompareLists();
            foreach (var list in allLists)
            {
                Console.Write("CompareDate: " + list.CompareDate.ToString() + "; Id: " + list.Id.ToString());
            }
        }
Пример #2
0
        public void UpdateCompareResult_ShouldAddNewRestaurantsToDB_if_already_exists_compare_attributes_and_update_if_necessary()
        {
            OpenStreetMapServices osm = new OpenStreetMapServices();
            var allLists = osm.GetAllRestaurantsCompareLists();

            //act
            foreach (var list in allLists)
            {
                serviceLayer.UpdateCompareResult(list);
            }
        }
Пример #3
0
        public void PrintCompareListCountsTest()
        {
            OpenStreetMapServices osm = new OpenStreetMapServices();

            //act
            var allLists = osm.GetAllRestaurantsCompareLists();
            foreach (var list in allLists)
            {
                serviceLayer.PrintCompareListCounts(list);
            }
        }
Пример #4
0
 public ActionResult UpdateComparedListConfirmed()
 {
     log.InfoFormat("[UpdateComparedListConfirmed].");
     OpenStreetMapServices osm = new OpenStreetMapServices();
     var allLists = osm.GetAllRestaurantsCompareLists();
     if (allLists != null && allLists.Count > 0)
     {
         m_serviceLayer.UpdateCompareResult(allLists[0]);
     }
     return RedirectToAction("PagedRestaurants");
 }