Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 4
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);
        }