示例#1
0
        public void Can_search_users_by_query()
        {
            var query       = "first_name:administrator";
            var usersResult = _userApiService.Search(query);

            usersResult.Count.ShouldEqual(1);
            usersResult.First().Username.ShouldEqual("21");

            // can passed by " " but not applicable for the url = search=1 per txt
            query = "first_name:john last_name:babuci";
            //query = "email:[email protected] username:21";
            usersResult = _userApiService.Search(query);

            usersResult.Count.ShouldEqual(1);
            usersResult.First().Username.ShouldEqual("*****@*****.**");
        }