Пример #1
0
        static partial void JsonSource(ref JToken json)
        {
            JsonRelationType_UnitTests.PopulateLinkTypes();

            JObject jObject   = CannedMessages.SampleWorkItemsWithRelations;
            JToken  workItem  = jObject["value"].Value <JArray>()[0];
            var     relations = workItem["relations"].Value <JArray>();

            json = relations[0];
        }
Пример #2
0
        partial void FromToken_PreCondition(JsonRelatedLink instance, ref JToken json)
        {
            JsonRelationType_UnitTests.PopulateLinkTypes();

            JObject jObject   = CannedMessages.SampleWorkItemsWithRelations;
            JToken  workItem  = jObject["value"].Value <JArray>()[0];
            var     relations = workItem["relations"].Value <JArray>();

            json = relations[0];
        }