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

Datei anzeigen Open project: pashkov/Spontaneous Class Usage Examples

Public Methods

Method 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

Method Description
CalcDistance ( Location sourceLocation, Location targetLocation ) : double
FillGeoSearchItems ( MongoDB geoResults, Location sourceLocation ) : List

Method Details

CheckForCorrectChainMenu() public method

public CheckForCorrectChainMenu ( RestaurantBasicData rest ) : bool
rest Spontaneous.DataModel.RestaurantBasicData
return bool

FindAllRestaurantsByOperator() public method

public FindAllRestaurantsByOperator ( string operatorName, bool emptyMenu = false ) : List
operatorName string
emptyMenu bool
return List

FindAllRestaurantsWithCusine() public method

public FindAllRestaurantsWithCusine ( ) : List
return List

FindAllRestaurantsWithCusineAndEmptyMenu() public method

public FindAllRestaurantsWithCusineAndEmptyMenu ( ) : List
return List

FindAllRestaurantsWithoutCusine() public method

public FindAllRestaurantsWithoutCusine ( ) : List
return List

FindAllRestaurantsWithoutCusineAndEmptyMenu() public method

public FindAllRestaurantsWithoutCusineAndEmptyMenu ( ) : List
return List

FindNearestRestaurantsByOperator() public method

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

GetAllRestaurantsWithBackOfficeSource() public method

public GetAllRestaurantsWithBackOfficeSource ( ) : List
return List

GetAllRestaurantsWithEmptyMenu() public method

Function should find all restaurants which empty menu
public GetAllRestaurantsWithEmptyMenu ( ) : List
return List

GetAllRestaurantsWithOsmSource() public method

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

GetAllRestaurantsWithSearchResult() public method

Function should find all restaurants which empty menu
public GetAllRestaurantsWithSearchResult ( ) : List
return List

GetRestaurantsBySource() public method

Find all restaurants with specified source property
public GetRestaurantsBySource ( string source ) : List
source string
return List

GetllAllRestaurantsBasicDataWithDefaultMenu() public method

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

GetllAllRestaurantsBasicDataWithDefaultMenuInStringList() public method

ToRestaurantListEntity() public method

public ToRestaurantListEntity ( List restaurantsList ) : List
restaurantsList List
return List