Beispiel #1
0
        internal static JsonQueryFolder GetInstance([CallerMemberName] string callerName = "")
        {
            JToken json = new JObject();

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

            InstanceFactory(ref instance, callerName);
            return(instance);
        }
Beispiel #2
0
        public void FromToken_UnitTest()
        {
            JToken          token   = default(JToken);
            JsonQueryFolder _retVal = default(JsonQueryFolder);

            ExecuteMethod(
                () => { return(GetInstance()); },
                instance =>
            {
                token = default(JToken);     //No Constructor
                FromToken_PreCondition(instance, ref token);
            },
                instance => { return(_retVal = JsonQueryFolder.FromToken(token)); },
                instance => { FromToken_PostValidate(instance, token, _retVal); });
        }