Beispiel #1
0
        public static TestProject LoadTestProjectFromJson(string jsonStr)
        {
            SequenceJsonConvertor convertor   = new SequenceJsonConvertor();
            TestProject           testProject = JsonConvert.DeserializeObject <TestProject>(jsonStr, convertor);

            ValidateTypeDatas(testProject);
            ModuleUtils.ValidateParent(testProject);
            return(testProject);
        }
Beispiel #2
0
        public static SequenceGroup LoadSequenceGroupFromJson(string jsonStr)
        {
            SequenceJsonConvertor convertor     = new SequenceJsonConvertor();
            SequenceGroup         sequenceGroup = JsonConvert.DeserializeObject <SequenceGroup>(jsonStr, convertor);

            ValidateTypeDatas(sequenceGroup);
            ModuleUtils.ValidateParent(sequenceGroup, null);
            return(sequenceGroup);
        }