Ejemplo n.º 1
0
        void RefreshList_Clicked(object sender, EventArgs e)
        {
            //IAssessmentManager assessmentManager = new AssessmentManager();
            //List<AssessmentMetadataEntity> assessments = assessmentManager.GetListOfAllAssignedAssessmentsFromServer();
            AssessmentService assessmentService         = new AssessmentService();
            List <AssessmentMetadataEntity> assessments = assessmentService.GetListOfAllAssignedAssessmentsFromServer();

            listView.ItemsSource = assessments;
        }
Ejemplo n.º 2
0
        void RefreshList_Clicked(object sender, EventArgs e)
        {
            activityIndicator.IsRunning = true;
            AssessmentService assessmentService         = new AssessmentService();
            List <AssessmentMetadataEntity> assessments = assessmentService.GetListOfAllAssignedAssessmentsFromServer();

            inspectionList.ItemsSource  = assessments;
            activityIndicator.IsRunning = false;
        }
Ejemplo n.º 3
0
        public void Test_GetListOfAllAssignedAssessmentsFromServer()
        {
            AssessmentService assessmentManager         = new AssessmentService();
            List <AssessmentMetadataEntity> assessments = assessmentManager.GetListOfAllAssignedAssessmentsFromServer();

            //Console.WriteLine(assessments);
            //Assert.True(true);
            if (assessments.Count == 3)
            {
                Console.WriteLine("Found All Assessments");
                Assert.True(true);
            }
            else
            {
                Console.WriteLine("Failed fidning All Assessments");
                Assert.True(false);
            }
        }