internal static JsonVersionControlItem GetInstance([CallerMemberName] string callerName = "")
        {
            JToken json = new JObject();

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

            InstanceFactory(ref instance, callerName);
            return(instance);
        }
        partial void FromToken_PreCondition(JsonVersionControlItem instance, ref JToken json)
        {
            var jObject = new JObject();

            jObject.Add(new JProperty("url", "http://www.example.com"));
            jObject.Add(new JProperty("changeDate", DateTime.Today));
            jObject.Add(new JProperty("path", "The Path"));
            jObject.Add(new JProperty("isFolder", false));
            jObject.Add(new JProperty("version", 1));
            json = jObject;
        }
        public void FromToken_UnitTest()
        {
            JToken token = default(JToken);
            JsonVersionControlItem _retVal = default(JsonVersionControlItem);

            ExecuteMethod(
                () => { return(GetInstance()); },
                instance =>
            {
                token = default(JToken);     //No Constructor
                FromToken_PreCondition(instance, ref token);
            },
                instance => { return(_retVal = JsonVersionControlItem.FromToken(token)); },
                instance => { FromToken_PostValidate(instance, token, _retVal); });
        }
 public void ChangeDate_UnitTest()
 {
     ExecuteProperty(
         () =>
         // Create Test Instance
     {
         JsonVersionControlItem instance = GetInstance();
         return(instance);
     },
         null, null, null, // No Set Accessor
         // Invoke Getter
         instance => { return(instance.ChangeDate); },
         // Validate Get Operation
         (instance, setValue, getValue) => { });
 }
 partial void ToString_PreCondition(JsonVersionControlItem instance);
 partial void ToString_PostValidate(JsonVersionControlItem instance, String _retVal);
 partial void JsonValue_SetCondition(ref JsonVersionControlItem instance, ref JToken setValue);
 partial void IsFolder_SetCondition(ref JsonVersionControlItem instance, ref Boolean setValue);
 static partial void InstanceFactory(ref JsonVersionControlItem instance, [CallerMemberName] string callerName = "");
 partial void Equals_PostValidate(JsonVersionControlItem instance, Object obj, Boolean _retVal);
 partial void CaptureJson_PreCondition(JsonVersionControlItem instance, ref JToken token);
 partial void GetHashCode_PostValidate(JsonVersionControlItem instance, Int32 _retVal);
 partial void GetHashCode_PreCondition(JsonVersionControlItem instance);
 partial void FromToken_PreCondition(JsonVersionControlItem instance, ref JToken token);
 partial void FromToken_PostValidate(JsonVersionControlItem instance, JToken token, JsonVersionControlItem _retVal);
 partial void Equals_PreCondition(JsonVersionControlItem instance, ref Object obj);
 partial void Url_SetCondition(ref JsonVersionControlItem instance, ref String setValue);
 partial void CaptureJson_PostValidate(JsonVersionControlItem instance, JToken token);
 partial void Version_SetCondition(ref JsonVersionControlItem instance, ref Int32 setValue);
 partial void GetType_PreCondition(JsonVersionControlItem instance);
 partial void GetType_PostValidate(JsonVersionControlItem instance, Type _retVal);
 partial void ChangeDate_SetCondition(ref JsonVersionControlItem instance, ref DateTime setValue);