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)); }
public string CreatePlatoonAndCourses() { return(JsonConvert.SerializeObject(new Tests { PlatoonList = VzvodAndLs.Get(), CourseList = Courses.Get() }, Formatting.Indented)); }