C# Класс Spontaneouse.DAL.Mongo10Gen.Utilities.RestaurantsSearch

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CheckForCorrectChainMenu ( RestaurantBasicData rest ) : bool
FindAllRestaurantsByOperator ( string operatorName, bool emptyMenu = false ) : List
FindAllRestaurantsWithCusine ( ) : List
FindAllRestaurantsWithCusineAndEmptyMenu ( ) : List
FindAllRestaurantsWithoutCusine ( ) : List
FindAllRestaurantsWithoutCusineAndEmptyMenu ( ) : List
FindAllSwedenFinlandRestaurants ( ) : List
FindAllSwedenFinlandRestaurantsWithCusine ( ) : 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"

Приватные методы

Метод Описание
CalcDistance ( Location sourceLocation, Location targetLocation ) : double
FillGeoSearchItems ( MongoDB geoResults, Location sourceLocation ) : List

Описание методов

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

public CheckForCorrectChainMenu ( RestaurantBasicData rest ) : bool
rest Spontaneous.DataModel.RestaurantBasicData
Результат bool

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

public FindAllRestaurantsByOperator ( string operatorName, bool emptyMenu = false ) : List
operatorName string
emptyMenu bool
Результат List

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

public FindAllRestaurantsWithCusine ( ) : List
Результат List

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

public FindAllRestaurantsWithCusineAndEmptyMenu ( ) : List
Результат List

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

public FindAllRestaurantsWithoutCusine ( ) : List
Результат List

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

public FindAllRestaurantsWithoutCusineAndEmptyMenu ( ) : List
Результат List

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

public FindAllSwedenFinlandRestaurants ( ) : List
Результат List

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

public FindAllSwedenFinlandRestaurantsWithCusine ( ) : List
Результат List

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

public FindNearestRestaurantsByOperator ( string operatorName, Location location, double maxDistance ) : List
operatorName string
location Spontaneous.DataModel.Location
maxDistance double
Результат List

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

public GetAllRestaurantsWithBackOfficeSource ( ) : List
Результат List

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

Function should find all restaurants which empty menu
public GetAllRestaurantsWithEmptyMenu ( ) : List
Результат List

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

Function should find all restaurants which source is "OpenStreetMap"
public GetAllRestaurantsWithOsmSource ( ) : List
Результат List

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

Function should find all restaurants which empty menu
public GetAllRestaurantsWithSearchResult ( ) : List
Результат List

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

Find all restaurants with specified source property
public GetRestaurantsBySource ( string source ) : List
source string
Результат List

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

Function should find all restaurants which names contains "default menu"
public GetllAllRestaurantsBasicDataWithDefaultMenu ( ) : List
Результат List