Exemplo n.º 1
0
 /// <summary>
 /// Returns a List of TesteeRelationship by name, context.  Empty list if it doesn't exist.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="context"></param>
 /// <returns></returns>
 public List <TesteeRelationship> GetRelationships(string name, TesteeProperty.PropertyContext context)
 {
     return(GetRelationships(name, new List <TesteeProperty.PropertyContext>()
     {
         context
     }));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns a single TesteeRelationship by name, context, entityKey.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="context"></param>
 /// <param name="entityKey"></param>
 /// <returns></returns>
 public TesteeRelationship GetRelationship(string name, TesteeProperty.PropertyContext context, long entityKey)
 {
     return(GetRelationship(name, new List <TesteeProperty.PropertyContext>()
     {
         context
     }, entityKey));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Returns a TesteeAttribute by name, context.  Null if it doesn't exist.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="context"></param>
 /// <returns></returns>
 public TesteeAttribute GetAttribute(string name, TesteeProperty.PropertyContext context)
 {
     return(GetAttribute(name, new List <TesteeProperty.PropertyContext>()
     {
         context
     }));
 }
Exemplo n.º 4
0
        /// <summary>
        /// Private helper method to return the TesteeAttribute.Value for a given
        /// name, context.  String.Empty if the TesteeAttribute doesn't exist.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="context"></param>
        /// <returns></returns>
        private string GetAttributeValueAsString(string name, TesteeProperty.PropertyContext context)
        {
            string          value = String.Empty;
            TesteeAttribute a     = GetAttribute(name, context);

            if (a != null)
            {
                value = a.Value;
            }
            return(value);
        }