Esempio n. 1
0
        public void OperationStatisticMapperCreationTest()
        {
            OperationStatisticMapper  osm    = new OperationStatisticMapper();
            List <OperationStatistic> osList = new List <OperationStatistic>();

            Assert.AreEqual(0, osm.getList().Count);
            osList = osm.getList();

            Assert.AreEqual(osList.Count, osm.getList().Count);
            osm.ClearList();
            Assert.AreEqual(0, osm.getList().Count);
        }
Esempio n. 2
0
 //set the data that's extracted from database into strings
 private void getOperationInformationFromDatabase()
 {
     foreach (OperationStatistic os in osm.getList())
     {
         startDate                = os.getStartDate();
         endDate                  = os.getEndDate();
         volunteerFollowUpText    = os.getVolunteerFollowup();
         financeText              = os.getFinance();
         vehicleText              = os.getVehicle();
         particularSituationText  = os.getParticularSituation();
         organizationFollowUpText = os.getOrganizationFollowup();
         supervisorFollowUpText   = os.getSupervisorFollowup();
         eventName                = os.getEventName();
         dispatcherName           = os.getDispatcherName();
     }
 }