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); }
//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(); } }