public RestuarntsChainUtility()
 {
     serviceLayer = new ServiceLayerImpl();
     cuisineServices = new CuisineMapServices();
     operatorSevices = new OperatorMapServices();
     restaurantsSearchUtilty = new RestaurantsSearchUtilities();
 }
Example #2
0
        public void ClassifyByGoogleSearchResultTest_ShouldMakeGoogleSearchForRestDescriptionIfNoGoogClassifyResult_AndTryClassifyAfterSearch()
        {
            var restaurantsSearchUtilty = new RestaurantsSearchUtilities();
            List<RestaurantBasicData> restsList = restaurantsSearchUtilty.GetAllRestaurantsWithEmptyMenu();
            //List<RestaurantBasicData> restsList = restaurantsSearchUtilty.GetAllRestaurantsWithSearchResult();

            var classifierServises = new ClassifierServices();
            classifierServises.ClassifyRestaurants("CuisinesSupervised1", restsList, 50);
        }
 public void Initialize()
 {
     restaurantsSearchUtilty = new RestaurantsSearchUtilities();
 }
 public ClassifierServices()
 {
     m_serviceLayer = new ServiceLayerImpl();
     defaultMenuUtility = new DefaultMenuUtility();
     restaurantsSearchUtilty = new RestaurantsSearchUtilities();
 }
Example #5
0
 public void Initialize()
 {
     defMenuUtility = new DefaultMenuUtility();
     cuisineServices = new CuisineMapServices();
     serviceLayer = new ServiceLayerImpl();
     restaurantsSearchUtilty = new RestaurantsSearchUtilities();
 }
Example #6
0
        public void MarkGoogleSearchResultsForTrain()
        {
            var restaurantsSearchUtilty = new RestaurantsSearchUtilities();
            List<RestaurantBasicData> restsList = restaurantsSearchUtilty.GetAllRestaurantsWithBackOfficeSource();

            var classifierServises = new ClassifierServices();
            classifierServises.MarkSearchResultsForTrain(restsList);
        }
Example #7
0
        public void ExecuteGoogleSearchAndSaveResultsTest()
        {
            var restaurantsSearchUtilty = new RestaurantsSearchUtilities();
            List<RestaurantBasicData> restsList = restaurantsSearchUtilty.GetAllRestaurantsWithBackOfficeSource();

            var classifierServises = new ClassifierServices();
            classifierServises.ExecuteGoogleSearchAndSaveResults(restsList);
        }
Example #8
0
        //==========================================================================================
        //Copy MenuPart
        //==========================================================================================
        public ActionResult SelectRestCopyMenuPartFrom(string restaurantId)
        {
            log.InfoFormat("[SelectRestCopyMenuPartFrom] RestaurantId={0}", restaurantId);
            RestaurantsSearchUtilities restaurantsSearchUtilty = new RestaurantsSearchUtilities();
            restaurantsSearchUtilty.GetllAllRestaurantsBasicDataWithDefaultMenu();
            CopyList copyList = new CopyList()
            {
                CopyToRestId = restaurantId,
                //RestaurantsList = m_serviceLayer.GetAllRestaurantsInStringList()
                RestaurantsList = restaurantsSearchUtilty.GetllAllRestaurantsBasicDataWithDefaultMenuInStringList()
            };

            return View(copyList);
        }