/// <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); }
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); }
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); }); }
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) => { }); }
partial void IsFixedSize_SetCondition(ref JsonLinkCollection instance, ref Boolean setValue);
partial void GetEnumerator_PreCondition(JsonLinkCollection instance);
partial void VersionTag_SetCondition(ref JsonLinkCollection instance, ref Int32 setValue);
partial void ToString_PostValidate(JsonLinkCollection instance, String _retVal);
partial void Remove_PreCondition(JsonLinkCollection instance, ref JsonLink item);
partial void RemoveAt_PreCondition(JsonLinkCollection instance, ref Int32 index);
partial void JsonValue_SetCondition(ref JsonLinkCollection instance, ref JToken setValue);
partial void GetType_PostValidate(JsonLinkCollection instance, Type _retVal);
partial void GetItem_PreCondition(JsonLinkCollection instance, ref Int32 index);
partial void GetItem_PostValidate(JsonLinkCollection instance, Int32 index, Object _retVal);
partial void FromToken_PreCondition(JsonLinkCollection instance, ref JArray value);
partial void GetHashCode_PreCondition(JsonLinkCollection instance);
partial void GetHashCode_PostValidate(JsonLinkCollection instance, Int32 _retVal);
partial void IsReadOnly_SetCondition(ref JsonLinkCollection instance, ref Boolean setValue);
partial void IsSynchronized_SetCondition(ref JsonLinkCollection instance, ref Boolean setValue);
partial void GetType_PreCondition(JsonLinkCollection instance);
partial void RemoveAt_PostValidate(JsonLinkCollection instance, Int32 index);
partial void IndexOf_PostValidate(JsonLinkCollection instance, JsonLink item, Int32 _retVal);
partial void Remove_PostValidate(JsonLinkCollection instance, JsonLink item, Boolean _retVal);
partial void IndexOf_PreCondition(JsonLinkCollection instance, ref JsonLink item);
partial void SyncRoot_SetCondition(ref JsonLinkCollection instance, ref Object setValue);
partial void Insert_PostValidate(JsonLinkCollection instance, Int32 index, JsonLink item);
partial void ToString_PreCondition(JsonLinkCollection instance);
static partial void InstanceFactory(ref JsonLinkCollection instance, [CallerMemberName] string callerName = "");
partial void Insert_PreCondition(JsonLinkCollection instance, ref Int32 index, ref JsonLink item);
partial void GetEnumerator_PostValidate(JsonLinkCollection instance, IEnumerator <JsonLink> _retVal);