GetAll() public method

public GetAll ( ) : List
return List
        public void TesCan_GetAll()
        {
            var repo = new FacilityHardwareInventoryRespository();
            var facilityHardwareList = repo.GetAll();

            Assert.IsNotNull(facilityHardwareList);
        }
        public List<FacilityHardwareInventoryModel> GetAllFacilityHardware()
        {
            var hardwareList = new List<FacilityHardwareInventoryModel>();
            var repo = new FacilityHardwareInventoryRespository();
            var facData = new FacilityData();
            var dataList = repo.GetAll();
            foreach ( var item in dataList )
            {
                var hardware = new FacilityHardwareInventoryModel();

                hardware.FacilityHardwareInventoryId = GetDataValue(item.faclty_hw_invtry_id);
                hardware.FacilityId = GetDataValue(item.faclty_id);
                hardware.Facility = facData.GetFacility(item.faclty_id).HealthCareFacility;
                hardware.ItemDescription = GetDataValue(item.itm_descn);
                hardware.MacAddress = GetDataValue(item.mac_addr);
                hardware.ApplicationVersion = GetDataValue(item.aplctn_vrsn);
                hardware.HardwareStatus = GetDataValue(item.hw_stat);
                hardware.CreateDate = GetDataValue(item.rec_creat_dt);
                hardware.CreatedBy = GetDataValue(item.rec_creat_user_id_cd);
                hardware.UpdateDate = GetDataValue(item.rec_updt_dt);
                hardware.UpdatedBy = GetDataValue(item.rec_updt_user_id_cd);

                hardwareList.Add(hardware);

            }

            return hardwareList;
        }
        public decimal? SaveOfficeVisit(OfficeVisitModel officeVisitModel)
        {
            OfficeVisitData officeVisitData = new OfficeVisitData();
            decimal? ov_idAfterSave = officeVisitModel.OfficeVisitId;

            FacilityHardwareInventoryRespository FacilityHardwareInventoryRespository =
                new FacilityHardwareInventoryRespository();

            List<faclty_hw_invtry> allFacilityHardwareInventoryRecords = FacilityHardwareInventoryRespository.GetAll();
            faclty_hw_invtry facilityHardwareInventory = (from webAdminFacilityHardwareInventoryIds in allFacilityHardwareInventoryRecords
                                                          where webAdminFacilityHardwareInventoryIds.itm_descn == "Website- Hip Admin"
                                                          select webAdminFacilityHardwareInventoryIds).FirstOrDefault();
            if (facilityHardwareInventory != null)
            {
                if (officeVisitModel.OfficeVisitId > 0)
                {
                    officeVisitModel.FacilityHardwareId = (decimal)facilityHardwareInventory.faclty_hw_invtry_id;
                    officeVisitData.UpdateVisit(officeVisitModel);
                }
                else
                {
                    ov_idAfterSave = officeVisitData.CreateVisit(officeVisitModel);
                }
            }

            return ov_idAfterSave;
        }