Beispiel #1
0
        public void TestNameSearch()
        {
            SearchCriteria sc = new SearchCriteria();

            sc.SearchType = enmSearchTypes.NameSearch;
            sc.Name       = "TextName";

            ISearchFactory       nameFactory = SearchFactory.GetFactory(sc.SearchType);
            ISearchType          searchType  = nameFactory.CreateSearchType(sc);
            List <ISearchResult> result      = searchType.Search();
        }
Beispiel #2
0
        public void TestNumberSearch()
        {
            SearchCriteria sc = new SearchCriteria();

            sc.SearchType = enmSearchTypes.NumberSearch;
            sc.IDNumber   = 123456;

            ISearchFactory       numberFactory = SearchFactory.GetFactory(sc.SearchType);
            ISearchType          searchType    = numberFactory.CreateSearchType(sc);
            List <ISearchResult> result        = searchType.Search();
        }