コード例 #1
0
ファイル: LocationTests.cs プロジェクト: BD-IATI/edi
        public void GetNearestLocationCtgTest()
        {
            System.Collections.Generic.List<GeoLocation> districts = NewMethod();

            location location = new location
            {
                point = new locationPoint { pos = "22.3475 91.8123" }
            };

            var nearestGeoLocation = AimsDAL.GetNearestGeoLocation(districts, location);

            Assert.AreEqual("Chittagong", nearestGeoLocation.Name);
        }
コード例 #2
0
ファイル: LocationTests.cs プロジェクト: BD-IATI/edi
        public void GetNearestLocationDahkaTest()
        {
            System.Collections.Generic.List<GeoLocation> districts = NewMethod();

            location location = new location
            {
                point = new locationPoint { pos = "23.72 90.38" }
            };

            var nearestGeoLocation = AimsDAL.GetNearestGeoLocation(districts, location);

            Assert.AreEqual("Dhaka", nearestGeoLocation.Name);
        }