示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        internal static List <String> SearchDomainsUrl()
        {
            SearchDomainsUrlsRequest req = new SearchDomainsUrlsRequest();

            SearchDomainsUrlsResponse res = new SearchDomainsUrlsResponse();

            res = _ClientServiceBase.ExecuteService <SearchDomainsUrlsRequest, SearchDomainsUrlsResponse>(req);

            if (res.Error != null)
            {
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);
            }

            return(res.BusinessData.DomainsNameList);
        }
示例#2
0
        public void SearchDomainsUrls_NO_Service()
        {
            SearchDomainsUrlsRequest wRequest = new SearchDomainsUrlsRequest();

            wRequest.BusinessData.ConnectionString = "test";
            SearchDomainsUrlsService svc = new SearchDomainsUrlsService();

            try
            {
                SearchDomainsUrlsResponse wResponse = svc.Execute(wRequest);
            }
            catch (Exception ex)
            {
                base.StrExceptionMessage = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex);
            }

            Assert.AreEqual <String>(base.StrExceptionMessage, String.Empty, base.StrExceptionMessage);
        }
示例#3
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        internal static List<String> SearchDomainsUrl()
        {
            SearchDomainsUrlsRequest req = new SearchDomainsUrlsRequest();

            SearchDomainsUrlsResponse res = new SearchDomainsUrlsResponse();

            res = _ClientServiceBase.ExecuteService<SearchDomainsUrlsRequest, SearchDomainsUrlsResponse>(req);

            if (res.Error != null)
                throw Fwk.Exceptions.ExceptionHelper.ProcessException(res.Error);

            return res.BusinessData.DomainsNameList;
        }