protected TonalityMarkingOutputResult GetTonalityOutputResult(TestSent sent)
        {
            using (var client = new TonalityMarkingWcfClient(ENDPOINT_CONFIGURATION_NAME))
            {
                var inputParams = new TonalityMarkingInputParams(sent.Text, InputTextFormat.PlainText);
                if (sent.OTs != null && sent.OTs.Any())
                {
                    inputParams.InquiriesSynonyms = sent.OTs.ToList();
                }
                var result = client.ExecuteTonalityMarking(inputParams);

                return(result);
            }
        }
 public static HtmlGenericControl CreateDiv4OkMessage(TestRule rule, TestSent sent)
 {
     return(CreateDiv(rule.ToString() + '.' + sent.ToString() + " - OK"));
 }
        public static HtmlGenericControl CreateDiv4ExceptionMessage(Exception ex, TestRule rule, TestSent sent)
        {
            var div = new HtmlGenericControl("div")
            {
                InnerHtml = rule.ToString() + '.' + sent.ToString() + " - " + (ex is TestException ? ex.Message : ex.ToString().GetNoLongest(250).ToHtmlBold())
            };

            div.Style[HtmlTextWriterStyle.Color] = "red";

            return(div);
        }
 public static void AddDiv4OkMessage(this ControlCollection controls, TestRule rule, TestSent sent)
 {
     controls.AddDiv(rule.ToString() + '.' + sent.ToString() + " - OK");
 }
 public static void AddDiv4ExceptionMessage(this ControlCollection controls, Exception ex, TestRule rule, TestSent sent)
 {
     controls.Add(CreateDiv4ExceptionMessage(ex, rule, sent));
 }