Ejemplo n.º 1
0
 /// <summary>
 /// Adds a new verification object.
 /// </summary>
 /// <param name="value">the verification object to be added (must not be null)</param>
 /// <returns></returns>
 public int Add(IResultInterface value)
 {
     return List.Add(value);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds a new verification object. Should the verification object be null,
        /// nothing happens.
        /// </summary>
        /// <param name="value">the verification object to be added (can be null)</param>
        /// <returns></returns>
        public int AddAndIgnoreNullValue(IResultInterface value)
        {
            int ReturnValue = -1;

            if (value != null)
            {
                ReturnValue = List.Add(value);
            }

            return ReturnValue;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// insert a new value at the given position
 /// </summary>
 /// <param name="index">position to insert after</param>
 /// <param name="value">value to add</param>
 public void Insert(int index, IResultInterface value)
 {
     List.Insert(index, value);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// remove a result from the list
 /// </summary>
 /// <param name="value">value to delete</param>
 public void Remove(IResultInterface value)
 {
     List.Remove(value);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// find the index of the given value
 /// </summary>
 /// <param name="value">value to look for</param>
 /// <returns>index of the value</returns>
 public int IndexOf(IResultInterface value)
 {
     return List.IndexOf(value);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// assign a specified verification result in the list
 /// </summary>
 /// <param name="Index">index to change the verification result</param>
 /// <param name="Value">the new value</param>
 public void SetVerificationResult(int Index, IResultInterface Value)
 {
     List[Index] = Value;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// check if the Verification list contains this value already
 /// </summary>
 /// <param name="value">check list for this value</param>
 /// <returns>true if the value is already there</returns>
 public bool Contains(IResultInterface value)
 {
     return List.Contains(value);
 }
Ejemplo n.º 8
0
        /// <summary>
        /// Adds a new verification object. Should the verification object be null,
        /// nothing happens.
        /// </summary>
        /// <param name="value">the verification object to be added (can be null)</param>
        /// <returns></returns>
        public int AddAndIgnoreNullValue(IResultInterface value)
        {
            if (value != null)
            {
                FList.Add(value);
                return Count;
            }

            return -1;
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Adds a new verification object.
 /// </summary>
 /// <param name="value">the verification object to be added (must not be null)</param>
 public int Add(IResultInterface value)
 {
     FList.Add(value);
     return Count;
 }