C# Класс PhotoSharingApp.Universal.Models.CategoryMatchFinder

Helper class for finding matches of category names.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetMatchingCategories ( string categoryName, IEnumerable categories ) : IEnumerable

Determines which categories are matching the given category name.

IsCategoryPartOfList ( string categoryName, IEnumerable categories ) : bool

Determines if the given category is part of the given list.

SearchCategories ( string categoryName, IEnumerable categories ) : IEnumerable

Searches for a category name within a set of given categories.

ValidateCategoryAcceptanceCriteria ( string categoryName, IEnumerable categories ) : void

Determines if the given category is part of the give list.

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

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

Determines which categories are matching the given category name.
public GetMatchingCategories ( string categoryName, IEnumerable categories ) : IEnumerable
categoryName string The category name to match.
categories IEnumerable The list of categories.
Результат IEnumerable

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

Determines if the given category is part of the given list.
public IsCategoryPartOfList ( string categoryName, IEnumerable categories ) : bool
categoryName string The category name to match.
categories IEnumerable The list that is matched against.
Результат bool

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

Searches for a category name within a set of given categories.
public SearchCategories ( string categoryName, IEnumerable categories ) : IEnumerable
categoryName string The category name to search for.
categories IEnumerable The list of categories.
Результат IEnumerable

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

Determines if the given category is part of the give list.
/// Thrown when the given category /// is part of the list. ///
public ValidateCategoryAcceptanceCriteria ( string categoryName, IEnumerable categories ) : void
categoryName string The category name to match.
categories IEnumerable The list that is matched against.
Результат void