C# Class Spontaneous.WebApp.Services.Compare.RestaurantsSearchUtilities

Afficher le fichier Open project: pashkov/Spontaneous Class Usage Examples

Méthodes publiques

Méthode Description
CheckForCorrectChainMenu ( RestaurantBasicData rest ) : bool
FindAllRestaurantsByOperator ( string operatorName, bool emptyMenu = false ) : List
FindAllRestaurantsWithCusine ( ) : List
FindAllRestaurantsWithCusineAndEmptyMenu ( ) : List
FindAllRestaurantsWithoutCusine ( ) : List
FindAllRestaurantsWithoutCusineAndEmptyMenu ( ) : List
FindNearestRestaurantsByOperator ( string operatorName, Location location, double maxDistance ) : List
GetAllRestaurantsWithBackOfficeSource ( ) : List
GetAllRestaurantsWithEmptyMenu ( ) : List

Function should find all restaurants which empty menu

GetAllRestaurantsWithOsmSource ( ) : List

Function should find all restaurants which source is "OpenStreetMap"

GetAllRestaurantsWithSearchResult ( ) : List

Function should find all restaurants which empty menu

GetRestaurantsBySource ( string source ) : List

Find all restaurants with specified source property

GetllAllRestaurantsBasicDataWithDefaultMenu ( ) : List

Function should find all restaurants which names contains "default menu"

GetllAllRestaurantsBasicDataWithDefaultMenuInStringList ( ) : List
ToRestaurantListEntity ( List restaurantsList ) : List

Private Methods

Méthode Description
CalcDistance ( Location sourceLocation, Location targetLocation ) : double
FillGeoSearchItems ( MongoDB geoResults, Location sourceLocation ) : List

Method Details

CheckForCorrectChainMenu() public méthode

public CheckForCorrectChainMenu ( RestaurantBasicData rest ) : bool
rest Spontaneous.DataModel.RestaurantBasicData
Résultat bool

FindAllRestaurantsByOperator() public méthode

public FindAllRestaurantsByOperator ( string operatorName, bool emptyMenu = false ) : List
operatorName string
emptyMenu bool
Résultat List

FindAllRestaurantsWithCusine() public méthode

public FindAllRestaurantsWithCusine ( ) : List
Résultat List

FindAllRestaurantsWithCusineAndEmptyMenu() public méthode

public FindAllRestaurantsWithCusineAndEmptyMenu ( ) : List
Résultat List

FindAllRestaurantsWithoutCusine() public méthode

public FindAllRestaurantsWithoutCusine ( ) : List
Résultat List

FindAllRestaurantsWithoutCusineAndEmptyMenu() public méthode

public FindAllRestaurantsWithoutCusineAndEmptyMenu ( ) : List
Résultat List

FindNearestRestaurantsByOperator() public méthode

public FindNearestRestaurantsByOperator ( string operatorName, Location location, double maxDistance ) : List
operatorName string
location Spontaneous.DataModel.Location
maxDistance double
Résultat List

GetAllRestaurantsWithBackOfficeSource() public méthode

public GetAllRestaurantsWithBackOfficeSource ( ) : List
Résultat List

GetAllRestaurantsWithEmptyMenu() public méthode

Function should find all restaurants which empty menu
public GetAllRestaurantsWithEmptyMenu ( ) : List
Résultat List

GetAllRestaurantsWithOsmSource() public méthode

Function should find all restaurants which source is "OpenStreetMap"
public GetAllRestaurantsWithOsmSource ( ) : List
Résultat List

GetAllRestaurantsWithSearchResult() public méthode

Function should find all restaurants which empty menu
public GetAllRestaurantsWithSearchResult ( ) : List
Résultat List

GetRestaurantsBySource() public méthode

Find all restaurants with specified source property
public GetRestaurantsBySource ( string source ) : List
source string
Résultat List

GetllAllRestaurantsBasicDataWithDefaultMenu() public méthode

Function should find all restaurants which names contains "default menu"
public GetllAllRestaurantsBasicDataWithDefaultMenu ( ) : List
Résultat List

GetllAllRestaurantsBasicDataWithDefaultMenuInStringList() public méthode

ToRestaurantListEntity() public méthode

public ToRestaurantListEntity ( List restaurantsList ) : List
restaurantsList List
Résultat List