예제 #1
0
파일: MlcProxy.cs 프로젝트: supermuk/iudico
        /// <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;
        }
예제 #2
0
 public void TrainingTestsSetUp()
 {
     training = new Training(123, 456, 789, AttemptStatus.Active, 34.6F);
 }