Beispiel #1
0
        /// <summary>
        /// Parses the links.
        /// </summary>
        /// <param name="jsonWorkItem">The json work item.</param>
        /// <returns>JsonLinkCollection.</returns>
        private static JsonLinkCollection ParseLinks(JsonWorkItem jsonWorkItem)
        {
            JArray             value = (JArray)((JObject)jsonWorkItem.JsonValue).Properties().FirstOrDefault(p => p.Name == "relations").Value <Object>();
            JsonLinkCollection links = JsonLinkCollection.FromToken(value);

            return(links);
        }
Beispiel #2
0
        internal static JsonLinkCollection GetInstance([CallerMemberName] string callerName = "")
        {
            var json = new JArray();

            JsonSource(ref json);
            JsonLinkCollection instance = JsonLinkCollection.FromToken(json);

            InstanceFactory(ref instance, callerName);
            return(instance);
        }
Beispiel #3
0
        public void FromToken_UnitTest()
        {
            JArray             value   = default(JArray);
            JsonLinkCollection _retVal = default(JsonLinkCollection);

            ExecuteMethod(
                () => { return(GetInstance()); },
                instance =>
            {
                value = new JArray();
                FromToken_PreCondition(instance, ref value);
            },
                instance => { return(_retVal = JsonLinkCollection.FromToken(value)); },
                instance => { FromToken_PostValidate(instance, value, _retVal); });
        }
Beispiel #4
0
 public void VersionTag_UnitTest()
 {
     ExecuteProperty(
         () =>
         // Create Test Instance
     {
         JsonLinkCollection instance = GetInstance();
         return(instance);
     },
         null, null, null, // No Set Accessor
         // Invoke Getter
         instance => { return(instance.VersionTag); },
         // Validate Get Operation
         (instance, setValue, getValue) => { });
 }
Beispiel #5
0
 partial void IsFixedSize_SetCondition(ref JsonLinkCollection instance, ref Boolean setValue);
Beispiel #6
0
 partial void GetEnumerator_PreCondition(JsonLinkCollection instance);
Beispiel #7
0
 partial void VersionTag_SetCondition(ref JsonLinkCollection instance, ref Int32 setValue);
Beispiel #8
0
 partial void ToString_PostValidate(JsonLinkCollection instance, String _retVal);
Beispiel #9
0
 partial void Remove_PreCondition(JsonLinkCollection instance, ref JsonLink item);
Beispiel #10
0
 partial void RemoveAt_PreCondition(JsonLinkCollection instance, ref Int32 index);
Beispiel #11
0
 partial void JsonValue_SetCondition(ref JsonLinkCollection instance, ref JToken setValue);
Beispiel #12
0
 partial void GetType_PostValidate(JsonLinkCollection instance, Type _retVal);
Beispiel #13
0
 partial void GetItem_PreCondition(JsonLinkCollection instance, ref Int32 index);
Beispiel #14
0
 partial void GetItem_PostValidate(JsonLinkCollection instance, Int32 index, Object _retVal);
Beispiel #15
0
 partial void FromToken_PreCondition(JsonLinkCollection instance, ref JArray value);
Beispiel #16
0
 partial void GetHashCode_PreCondition(JsonLinkCollection instance);
Beispiel #17
0
 partial void GetHashCode_PostValidate(JsonLinkCollection instance, Int32 _retVal);
Beispiel #18
0
 partial void IsReadOnly_SetCondition(ref JsonLinkCollection instance, ref Boolean setValue);
Beispiel #19
0
 partial void IsSynchronized_SetCondition(ref JsonLinkCollection instance, ref Boolean setValue);
Beispiel #20
0
 partial void GetType_PreCondition(JsonLinkCollection instance);
Beispiel #21
0
 partial void RemoveAt_PostValidate(JsonLinkCollection instance, Int32 index);
Beispiel #22
0
 partial void IndexOf_PostValidate(JsonLinkCollection instance, JsonLink item, Int32 _retVal);
Beispiel #23
0
 partial void Remove_PostValidate(JsonLinkCollection instance, JsonLink item, Boolean _retVal);
Beispiel #24
0
 partial void IndexOf_PreCondition(JsonLinkCollection instance, ref JsonLink item);
Beispiel #25
0
 partial void SyncRoot_SetCondition(ref JsonLinkCollection instance, ref Object setValue);
Beispiel #26
0
 partial void Insert_PostValidate(JsonLinkCollection instance, Int32 index, JsonLink item);
Beispiel #27
0
 partial void ToString_PreCondition(JsonLinkCollection instance);
Beispiel #28
0
 static partial void InstanceFactory(ref JsonLinkCollection instance, [CallerMemberName] string callerName = "");
Beispiel #29
0
 partial void Insert_PreCondition(JsonLinkCollection instance, ref Int32 index, ref JsonLink item);
Beispiel #30
0
 partial void GetEnumerator_PostValidate(JsonLinkCollection instance, IEnumerator <JsonLink> _retVal);