public ExtendedModelResult(ModelResult modelResult)
 {
     Start      = modelResult.Start;
     End        = modelResult.End;
     TypeName   = modelResult.TypeName;
     Resolution = modelResult.Resolution;
     Text       = modelResult.Text;
 }
Esempio n. 2
0
        public TestModelResult(ModelResult result)
        {
            this.Text     = result.Text;
            this.TypeName = result.TypeName;
            Resolution    = new Dictionary <string, object>();
            object value;

            if (result.Resolution.TryGetValue("value", out value))
            {
                Resolution.Add("value", value);
            }

            if (result.Resolution.TryGetValue("unit", out value))
            {
                Resolution.Add("unit", value);
            }

            if (result.Resolution.TryGetValue("values", out value))
            {
                Resolution.Add("values", value);
            }
        }