/// <summary> /// Retrieves collection of trainings for current user. /// </summary> /// <returns>IEnumerable collection of Training objects.</returns> public IEnumerable<Training> GetTrainings() { LearningStoreJob job = LStore.CreateJob(); RequestMyTraining(job, null); DataTable results = job.Execute<DataTable>(); List<Training> packages = new List<Training>(); foreach (DataRow dataRow in results.AsEnumerable()) { // Create Training object Training training = new Training(dataRow); packages.Add(training); } return packages; }
public void TrainingTestsSetUp() { training = new Training(123, 456, 789, AttemptStatus.Active, 34.6F); }