internal static JsonQueryDefinition GetInstance([CallerMemberName] string callerName = "") { JToken json = new JObject(); JsonSource(ref json); JsonQueryDefinition instance = JsonQueryDefinition.FromToken(json); InstanceFactory(ref instance, callerName); return(instance); }
public void FromToken_UnitTest() { JToken token = default(JToken); JsonQueryDefinition _retVal = default(JsonQueryDefinition); ExecuteMethod( () => { return(GetInstance()); }, instance => { token = default(JToken); //No Constructor FromToken_PreCondition(instance, ref token); }, instance => { return(_retVal = JsonQueryDefinition.FromToken(token)); }, instance => { FromToken_PostValidate(instance, token, _retVal); }); }
static partial void InstanceFactory(ref JsonQueryDefinition instance, string callerName) { JObject jobject = JObject.Parse(CannedMessages.SampleQueryDefinition); instance = JsonQueryDefinition.FromToken(jobject); }