public void FulltextSearchResultElementConstructorUnitTest()
        {
            Assert.Inconclusive("TODO");

            AGraphElement graphElement = null; // TODO: Initialize to an appropriate value
            double score = 0F; // TODO: Initialize to an appropriate value
            IEnumerable<string> highlights = null; // TODO: Initialize to an appropriate value
            var target = new FulltextSearchResultElement(graphElement, score, highlights);
        }
 /// <summary>
 /// Creates a new FulltextSearchResultElementREST instance
 /// </summary>
 public FulltextSearchResultElementREST(FulltextSearchResultElement toBeTransferredResult)
 {
     if (toBeTransferredResult != null)
     {
         GraphElementId = toBeTransferredResult.GraphElement.Id;
         Highlights = toBeTransferredResult.Highlights;
         Score = toBeTransferredResult.Score;
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Adds an element
        /// </summary>
        /// <param name="element">Element</param>
        public void AddElement(FulltextSearchResultElement element)
        {
            Elements.Add(element);

            if (element.Score > MaximumScore)
            {
                MaximumScore = element.Score;
            }
        }
Esempio n. 4
0
        /// <summary>
        /// Adds an element
        /// </summary>
        /// <param name="element">Element</param>
        public void AddElement(FulltextSearchResultElement element)
        {
            Elements.Add(element);

            if (element.Score > MaximumScore)
            {
                MaximumScore = element.Score;
            }
        }