Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void Id_UnitTest()
 {
     ExecuteProperty(
         () =>
         // Create Test Instance
     {
         JsonQueryDefinition instance = GetInstance();
         return(instance);
     },
         null, null, null, // No Set Accessor
         // Invoke Getter
         instance => { return(instance.Id); },
         // Validate Get Operation
         (instance, setValue, getValue) => { });
 }
Beispiel #3
0
        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); });
        }
Beispiel #4
0
 partial void Path_SetCondition(ref JsonQueryDefinition instance, ref String setValue);
Beispiel #5
0
 partial void JsonValue_SetCondition(ref JsonQueryDefinition instance, ref JToken setValue);
Beispiel #6
0
 partial void IsFolder_SetCondition(ref JsonQueryDefinition instance, ref Boolean setValue);
Beispiel #7
0
 static partial void InstanceFactory(ref JsonQueryDefinition instance, [CallerMemberName] string callerName = "");
Beispiel #8
0
 partial void Id_SetCondition(ref JsonQueryDefinition instance, ref Guid setValue);
Beispiel #9
0
 partial void CaptureJson_PostValidate(JsonQueryDefinition instance, JToken token);
Beispiel #10
0
 partial void Equals_PostValidate(JsonQueryDefinition instance, Object obj, Boolean _retVal);
Beispiel #11
0
 partial void GetHashCode_PostValidate(JsonQueryDefinition instance, Int32 _retVal);
Beispiel #12
0
 partial void GetHashCode_PreCondition(JsonQueryDefinition instance);
Beispiel #13
0
 partial void FromToken_PreCondition(JsonQueryDefinition instance, ref JToken token);
Beispiel #14
0
 partial void FromToken_PostValidate(JsonQueryDefinition instance, JToken token, JsonQueryDefinition _retVal);
Beispiel #15
0
 partial void Equals_PreCondition(JsonQueryDefinition instance, ref Object obj);
Beispiel #16
0
 partial void ToString_PostValidate(JsonQueryDefinition instance, String _retVal);
Beispiel #17
0
 partial void FromToken_PreCondition(JsonQueryDefinition instance, ref JToken json)
 {
     json = JObject.Parse(CannedMessages.SampleQueryDefinition);
 }
Beispiel #18
0
 partial void ToString_PreCondition(JsonQueryDefinition instance);
Beispiel #19
0
 partial void CaptureJson_PreCondition(JsonQueryDefinition instance, ref JToken token);
Beispiel #20
0
 partial void GetType_PostValidate(JsonQueryDefinition instance, Type _retVal);
Beispiel #21
0
 partial void GetType_PreCondition(JsonQueryDefinition instance);
Beispiel #22
0
        static partial void InstanceFactory(ref JsonQueryDefinition instance, string callerName)
        {
            JObject jobject = JObject.Parse(CannedMessages.SampleQueryDefinition);

            instance = JsonQueryDefinition.FromToken(jobject);
        }
 /// <summary>
 ///     Processes the specified query.
 /// </summary>
 /// <param name="query">The query.</param>
 private void Process(JsonQueryDefinition query)
 {
     r_Queries.Add(query.Id, new QueryDefinitionImpl());
 }