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); }
public void AddTrackingInfoTest() { TrackingInfoService service = new TrackingInfoService(); trackingInfo.Setup(t => t.AddNewTrackingDetails(dataSet.getGPSDetails())).Returns(dataSet.getGPSDetails()); var response = service.AddTracking(dataSet.getGPSDetails()); Assert.AreEqual("1", response.trackingId); }