public void CheckCount_GetLocationsByImei() { var geolocationsMongoDB = new GeolocationsMongoDB(server); var locations = geolocationsMongoDB.GetLocationsByImei("13845257385757011", new DateTime(2012, 9, 10, 0, 0, 1), new DateTime(2012, 9, 10, 23, 59, 59)); var count = locations.ToList().Count; count.Should().Not.Equal(0); }
public void CheckCount_GetLocationsByDeviceSN() { var geolocationsMongoDB = new GeolocationsMongoDB(server); var locations = geolocationsMongoDB.GetLocationsByImei("352848024123388", new DateTime(2012, 10, 1, 0, 0, 1), new DateTime(2012, 10, 1, 23, 59, 59)); var totalCount = locations.ToList().Count; var onlyGeoPointCount = locations.Where(g => g.FromMessage == "GeoPoint").ToList().Count; totalCount.Should().Not.Equal(0); (totalCount >= onlyGeoPointCount).Should().Equal(true); }