Esempio n. 1
0
        public string CreateTestCollection(List <Test> tests)
        {
            var jsonTests = new List <Wrappers.Test>();

            foreach (var test in tests)
            {
                jsonTests.Add(CreateTestJsonMessage(test));
            }

            return(JsonConvert.SerializeObject(new Tests {
                PlatoonList = VzvodAndLs.Get(), TestList = jsonTests, CourseList = Courses.Get()
            }, Formatting.Indented));
        }
Esempio n. 2
0
 public string CreatePlatoonAndCourses()
 {
     return(JsonConvert.SerializeObject(new Tests {
         PlatoonList = VzvodAndLs.Get(), CourseList = Courses.Get()
     }, Formatting.Indented));
 }