コード例 #1
0
        internal static JsonLinkTypeEnd GetInstance([CallerMemberName] string callerName = "")
        {
            var json = new JObject();

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

            InstanceFactory(ref instance, callerName);
            return(instance);
        }
コード例 #2
0
        public void FromToken_UnitTest()
        {
            JObject         token   = default(JObject);
            JsonLinkTypeEnd _retVal = default(JsonLinkTypeEnd);

            ExecuteMethod(
                () => { return(GetInstance()); },
                instance =>
            {
                token = new JObject();
                FromToken_PreCondition(instance, ref token);
            },
                instance => { return(_retVal = JsonLinkTypeEnd.FromToken(token)); },
                instance => { FromToken_PostValidate(instance, token, _retVal); });
        }
コード例 #3
0
        static partial void InstanceFactory(ref JsonLinkTypeEnd instance, string callerName)
        {
            var token = new JObject();

            instance = JsonLinkTypeEnd.FromToken(token);
        }