예제 #1
0
 public RestuarntsChainUtility()
 {
     serviceLayer = new ServiceLayerImpl();
     cuisineServices = new CuisineMapServices();
     operatorSevices = new OperatorMapServices();
     restaurantsSearchUtilty = new RestaurantsSearchUtilities();
 }
예제 #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();
 }
예제 #4
0
 public ClassifierServices()
 {
     m_serviceLayer = new ServiceLayerImpl();
     defaultMenuUtility = new DefaultMenuUtility();
     restaurantsSearchUtilty = new RestaurantsSearchUtilities();
 }
예제 #5
0
 public void Initialize()
 {
     defMenuUtility = new DefaultMenuUtility();
     cuisineServices = new CuisineMapServices();
     serviceLayer = new ServiceLayerImpl();
     restaurantsSearchUtilty = new RestaurantsSearchUtilities();
 }
예제 #6
0
        public void MarkGoogleSearchResultsForTrain()
        {
            var restaurantsSearchUtilty = new RestaurantsSearchUtilities();
            List<RestaurantBasicData> restsList = restaurantsSearchUtilty.GetAllRestaurantsWithBackOfficeSource();

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

            var classifierServises = new ClassifierServices();
            classifierServises.ExecuteGoogleSearchAndSaveResults(restsList);
        }
예제 #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);
        }