/// <summary>
        /// Retrieves all the animal's latest position for the selected category
        /// </summary>
        /// <returns>Details of animals, category and the tracking information of all the animals in selected category</returns>
        public TrackingInfoResponse GetAnimalsLocationPerCategory(string categoryId)
        {
            TrackingInfoResponse   trackingDetailsResponse = new TrackingInfoResponse();
            List <GPSTrackingInfo> trackingInfo            = trackingRepo.RetrieveAllAnimalsLatestLocationPerCategory(categoryId);

            trackingDetailsResponse.gpsTrackingDetails = trackingInfo;
            return(trackingDetailsResponse);
        }
        public void GetAnimalsInEachCategory()
        {
            TrackingInfoService service = new TrackingInfoService();

            trackingInfo.Setup(t => t.RetrieveAllAnimalsLatestLocationPerCategory("1")).Returns(dataSet.getGPSListInfo());
            TrackingInfoResponse response = service.GetAllAnimalsLocation();

            Assert.IsTrue(response.gpsTrackingDetails.Count > 0);
        }