コード例 #1
0
ファイル: SearchTest.cs プロジェクト: kudrinyaroslav/ON-0110
        /// <summary>
        /// Returns DUT's search service address
        /// </summary>
        /// <returns>Search service url</returns>
        protected string GetSearchServiceAddress()
        {
            string address = string.Empty;

            RunStep(() =>
            {
                DeviceClient device = DeviceClient;
                address             = device.GetSearchServiceAddress(Features);

                if (string.IsNullOrEmpty(address))
                {
                    throw new AssertException("The DUT did not return Search service address");
                }
            }, "Get Search Service address");
            DoRequestDelay();
            return(address);
        }