Exemplo n.º 1
0
        public HttpResponseMessage Get([FromUri]  VillageParameter parameter)
        {
            var validator = new VillageParameterValidator();
            var results = validator.Validate(parameter);
            var errors = results.Errors;

            if (errors.Any() == true)
            {
                string errorMessage = errors.Select(x => x.ErrorMessage).Aggregate((current, next) => current + ", " + next);
                throw new System.InvalidOperationException(errorMessage);
            }

            var service = new VillageService();
            var villages = service.Get(parameter);

            return this.GenerateSuccessResponse(parameter, villages);
        }
Exemplo n.º 2
0
        public void Get_ps傳入_ZipID傳入11_回傳南港區里資料()
        {
            // arrange

            #region "expected parameter"

            var expected = new List<VillageDto>
            {
                new VillageDto
                {
                    CLat = 25.039268249024005,
                    CLng = 121.5925565682039,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59392646696749 25.040195672893994, 121.59293779535405 25.040450883096796, 121.59268482223071 25.040095154629274, 121.59232582843391 25.040027243729707, 121.59208781625897 25.040199202057838, 121.59152689174987 25.041282300809804, 121.5910019253558 25.041325291322778, 121.59072787280694 25.041124311441155, 121.59064382478192 25.040403316450483, 121.59110385352867 25.040029311311507, 121.59139371600976 25.038925261992528, 121.59162169782239 25.038741245346479, 121.59124663187121 25.037519214115093, 121.59149353810558 25.036049208089569, 121.5923662899645 25.035066172613124, 121.59348118883995 25.034802794182113, 121.59362814100822 25.034393827130497, 121.59453112718769 25.033560726757074, 121.59537502448349 25.033035745049371, 121.59674408101743 25.033987685272763, 121.59747007449845 25.034298614929089, 121.59631952911413 25.037539675817253, 121.59594457789146 25.038193705527082, 121.5955315787471 25.038673530432511, 121.59521331099961 25.038693237263118, 121.59477834965494 25.039440008245514, 121.59416789726706 25.039535405753771, 121.59392646696749 25.040195672893994))",
                    MaxLat = 25.041332310342092,
                    MaxLng = 121.59747007449845,
                    MinLat = 25.033035745049371,
                    MinLng = 121.59062783109083,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "仁福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.037827828397894,
                    CLng = 121.59006631946384,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59036456220424 25.038134050365674, 121.59020477590734 25.038791302499462, 121.58755903996321 25.041773742961272, 121.58675096226943 25.04160374448178, 121.58699983372809 25.040960814616717, 121.58680438807755 25.040904156642068, 121.5871628899294 25.039694519450315, 121.58744791046161 25.039780433002505, 121.58770883151192 25.039028456165763, 121.58837076692177 25.037954361300084, 121.58908273395018 25.037432372005156, 121.58934568492091 25.036783315497708, 121.58914356279379 25.035844284589956, 121.58955449437889 25.03515328799849, 121.58931432231623 25.034297298024512, 121.59087716787839 25.032831191949352, 121.59217503393783 25.031321072206257, 121.59316008295676 25.032309824019372, 121.59389104211367 25.0324167877292, 121.59428802489488 25.032689771187808, 121.59498502439847 25.032804720546462, 121.59537502448349 25.033035745049371, 121.59453112718769 25.033560726757074, 121.59362814100822 25.034393827130497, 121.59348118883995 25.034802794182113, 121.5923662899645 25.035066172613124, 121.59149353810558 25.036049208089569, 121.59124663187121 25.037519214115093, 121.59067392837431 25.037661762880827, 121.59036456220424 25.038134050365674))",
                    MaxLat = 25.041773742961272,
                    MaxLng = 121.59537502448349,
                    MinLat = 25.031321072206257,
                    MinLng = 121.58675096226943,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "百福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.043259988579027,
                    CLng = 121.58566004997273,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.58677833773351 25.043096167578202, 121.58664820217969 25.043821555082957, 121.58683639309042 25.044440565793931, 121.58620281764713 25.045428464004587, 121.5843212638941 25.044532784991397, 121.58413562260033 25.044786514589738, 121.58340928631522 25.044208799749587, 121.58284882251101 25.043452303078144, 121.58432279525441 25.042266819215595, 121.58551846880398 25.041562076118922, 121.58596605487847 25.041658323484569, 121.58659853525346 25.041573707934397, 121.58755903996321 25.041773742961272, 121.58677833773351 25.043096167578202))",
                    MaxLat = 25.045428464004587,
                    MaxLng = 121.58755903996321,
                    MinLat = 25.041562076118922,
                    MinLng = 121.58284882251101,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "鴻福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.031394370322719,
                    CLng = 121.63363110702727,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.63013127348239 25.035137081949941, 121.62987832277221 25.036468106742539, 121.62631856449698 25.037981223105348, 121.62507062718566 25.037786307472427, 121.62462463885159 25.038423364235875, 121.62165492603329 25.040397781158017, 121.61933918757836 25.043301934102647, 121.61751514279999 25.041923050065062, 121.61779414575979 25.041129965491937, 121.61807609188588 25.040842938641273, 121.61827801242818 25.04009893034408, 121.61821395314482 25.039124978727443, 121.61797493531077 25.038500992789221, 121.61809875755493 25.035579990781461, 121.61834947790591 25.034915955789447, 121.61915433301272 25.033829863942241, 121.61909925067296 25.0324629442894, 121.6193681179782 25.030714920727778, 121.62034794862497 25.028268888064183, 121.62071585896561 25.026864808833484, 121.6205907655649 25.026058873634756, 121.61849650485128 25.023338992956052, 121.61648638715133 25.020299110713921, 121.61591237787943 25.019730144283436, 121.61743925197719 25.018380046163134, 121.61894412235526 25.018042971749729, 121.62019909816117 25.018490899885069, 121.62273794636037 25.017155551784452, 121.62632094220727 25.018730388093697, 121.62653299720481 25.019725374449209, 121.62716397754687 25.019965319228639, 121.62771095920185 25.019291265599922, 121.62893792715012 25.020072220141738, 121.62993104275439 25.021547117797315, 121.63052411118262 25.023721090541184, 121.63176525816873 25.025711008556211, 121.63248824744655 25.025668693844594, 121.63612692948915 25.02346458456968, 121.63769399358254 25.024137468963495, 121.64062180767554 25.023420272995921, 121.64304581379577 25.024455860119428, 121.64432576829748 25.024021812605952, 121.64585265153929 25.022517766497423, 121.64602554913213 25.021761758426805, 121.64695056624018 25.021614720850721, 121.64874161108479 25.022786613984284, 121.65005467056555 25.023974479765794, 121.65132962738753 25.023853421265212, 121.65388159985687 25.024398987495776, 121.6573124778422 25.023387805975656, 121.66090943674691 25.023442552279359, 121.66260340927165 25.022939090921813, 121.66401348847025 25.023273002640654, 121.66509467125326 25.025513890589902, 121.66480202519192 25.028126994023552, 121.66539006936364 25.028803969992222, 121.6658821502583 25.029841898392757, 121.66467707473385 25.02948098953523, 121.66314710859632 25.030199032478755, 121.66097508898484 25.0304975662711, 121.65752101313485 25.028800742278573, 121.65718197047683 25.028121825745476, 121.65489192747836 25.027640942778927, 121.65039397902979 25.027563475555382, 121.64802308528539 25.028466601932656, 121.64657907495588 25.027920687123398, 121.6463370616048 25.028230705964788, 121.64644117417345 25.028883670153562, 121.64446419199794 25.02961880535463, 121.64277536205076 25.030775850614834, 121.63981852681994 25.031963260269759, 121.6378396897621 25.03368037564443, 121.63389991494773 25.034792606179135, 121.63332817161374 25.035882662198226, 121.63013127348239 25.035137081949941))",
                    MaxLat = 25.043301934102647,
                    MaxLng = 121.6658821502583,
                    MinLat = 25.017155551784452,
                    MinLng = 121.61591237787943,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "舊莊里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.027817071790786,
                    CLng = 121.60122265653609,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.61797493791028 25.038158977953664, 121.61618603143165 25.038707057649624, 121.61260908668055 25.038375487420335, 121.61193314285683 25.038510546407803, 121.61118218423971 25.038270577958489, 121.60806226632312 25.038394795137808, 121.605675270891 25.03748693235335, 121.60371431511609 25.037197047332221, 121.60279326641286 25.036902293195098, 121.60024125751694 25.035412457503949, 121.59793004241027 25.034629572215955, 121.59674408101743 25.033987685272763, 121.59516607340612 25.032874692293419, 121.59451205526597 25.0327747407575, 121.59389104211367 25.0324167877292, 121.59316008295676 25.032309824019372, 121.59217503393783 25.031321072206257, 121.59135692269413 25.030116157419762, 121.58973693258082 25.029365241081603, 121.58826091484889 25.02844832523639, 121.58664187602645 25.026823361228011, 121.58507648582749 25.023673435688011, 121.5849743996293 25.022257453675135, 121.58437239689228 25.021617405829684, 121.58438628945461 25.02056438588053, 121.58357115516095 25.018557453127197, 121.58280520961985 25.018741682236243, 121.58155916576095 25.018047711027254, 121.58014581245762 25.017012809795368, 121.57767967419454 25.014136851973632, 121.57818366615298 25.013232783256324, 121.57917261406777 25.012893770419122, 121.57982251389622 25.012418648188351, 121.58068854491746 25.012253645730656, 121.58147749677191 25.012675568113593, 121.58275451575493 25.01275652804873, 121.58318856077896 25.01303938742841, 121.58459251459149 25.013055273954496, 121.585740523906 25.013451287235728, 121.58822746146485 25.013522099893205, 121.58885449667383 25.013777128161529, 121.59118643453806 25.014227004312595, 121.59168149070118 25.014940951792219, 121.59296743078608 25.014542749685102, 121.59387844135597 25.014929708112096, 121.59433244150324 25.015514688530892, 121.59539445937918 25.015743658654664, 121.59589537477366 25.014905567191708, 121.59716135881078 25.014524521645082, 121.59973824447454 25.014535369232547, 121.6014482713428 25.015309287833929, 121.60223627387956 25.014949273134054, 121.60308724476296 25.015670063483451, 121.60337355176694 25.017005992456053, 121.60438265018098 25.0192909913598, 121.60798955745537 25.019561779460972, 121.6096084971187 25.019062713620496, 121.61038550673551 25.019769648671243, 121.61104253770593 25.019862565581938, 121.61244248488886 25.019321482168056, 121.61461338926271 25.019223222066127, 121.61591237787943 25.019730144283436, 121.61648638715133 25.020299110713921, 121.62071278882098 25.026400828998685, 121.62034794862497 25.028268888064183, 121.6193681179782 25.030714920727778, 121.61909925067296 25.0324629442894, 121.61915433301272 25.033829863942241, 121.61834947790591 25.034915955789447, 121.61809875755493 25.035579990781461, 121.61797493791028 25.038158977953664))",
                    MaxLat = 25.038707057649624,
                    MaxLng = 121.62071585896561,
                    MinLat = 25.012253645730656,
                    MinLng = 121.57767967419454,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "九如里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.043229481827,
                    CLng = 121.61348824352424,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.61800398981896 25.045610911506035, 121.61707080869577 25.047291059499102, 121.61665496683788 25.049166112381382, 121.61488097846738 25.048838220802779, 121.61305906603462 25.049046284351988, 121.61270703988968 25.048939588667047, 121.61229907981949 25.048285586802173, 121.61219998932712 25.047500410069169, 121.61153788217459 25.047477362265504, 121.61103493291111 25.046872047402644, 121.61100266990937 25.046245142549342, 121.61127903409144 25.045713416841178, 121.61128423755432 25.044947400691502, 121.61108825767042 25.044555835765074, 121.61050179423965 25.0443172200988, 121.60925253238365 25.04423432900801, 121.60895960365249 25.04376478207719, 121.60893954652182 25.043344748094487, 121.60868058622292 25.043160806551555, 121.6084433759949 25.039863778139111, 121.60858223187651 25.03833677767971, 121.61118218423971 25.038270577958489, 121.61193314285683 25.038510546407803, 121.61260908668055 25.038375487420335, 121.61618603143165 25.038707057649624, 121.61797493791028 25.038158977953664, 121.61827801242818 25.04009893034408, 121.61807609188588 25.040842938641273, 121.61779414575979 25.041129965491937, 121.61751514279999 25.041923050065062, 121.61933918757836 25.043301934102647, 121.61800398981896 25.045610911506035))",
                    MaxLat = 25.049166112381382,
                    MaxLng = 121.61933918757836,
                    MinLat = 25.038158977953664,
                    MinLng = 121.6084433759949,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "中研里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.047945856553632,
                    CLng = 121.58859021574403,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.58962374874446 25.04772385159384, 121.58969457854231 25.04798145842194, 121.59074078624957 25.048427280486635, 121.59103323069654 25.048778624138475, 121.59090090103842 25.049699396687355, 121.58658748354647 25.048679973271916, 121.58509363154077 25.048021530591797, 121.58592028274064 25.047292601971449, 121.58692881816012 25.046744514650047, 121.58701540807709 25.046391875704362, 121.58835509447766 25.046579836115431, 121.59016615716111 25.046482787588804, 121.58962374874446 25.04772385159384))",
                    MaxLat = 25.049699396687355,
                    MaxLng = 121.59103323069654,
                    MinLat = 25.046391875704362,
                    MinLng = 121.58509363154077,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "聯成里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.048729281982855,
                    CLng = 121.58593631410986,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59090090103842 25.049699396687355, 121.5940189612014 25.050437531072426, 121.59377178274863 25.051151094582316, 121.58258779107243 25.049368216998026, 121.58140984706147 25.048931647119971, 121.58012762361919 25.048881493506553, 121.58016812533667 25.048107327551271, 121.5806459293232 25.047390744463385, 121.58069748671446 25.04537063117656, 121.58143551575245 25.044688167911808, 121.58122879333145 25.044696155893767, 121.58137248880678 25.0442191719516, 121.58193939288091 25.044204268100167, 121.584037584425 25.047064062870248, 121.58509363154077 25.048021530591797, 121.58658748354647 25.048679973271916, 121.59090090103842 25.049699396687355))",
                    MaxLat = 25.051151094582316,
                    MaxLng = 121.5940189612014,
                    MinLat = 25.044204268100167,
                    MinLng = 121.58012762361919,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "合成里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.051445236771361,
                    CLng = 121.5841234671511,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.58897271763003 25.050397515962473, 121.58840628601182 25.053043814654671, 121.58778426318261 25.054944746201517, 121.58734427553769 25.055215734571057, 121.58618024196359 25.054456743262982, 121.58305825564381 25.05350223540168, 121.57980407408535 25.052969435442666, 121.58004996125786 25.051404366328963, 121.57966892870807 25.050445339026705, 121.58008193829053 25.04955225548396, 121.58012762361919 25.048881493506553, 121.58140984706147 25.048931647119971, 121.58258779107243 25.049368216998026, 121.58897271763003 25.050397515962473))",
                    MaxLat = 25.055215734571057,
                    MaxLng = 121.58897271763003,
                    MinLat = 25.048881493506553,
                    MinLng = 121.57966892870807,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "玉成里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.052775668080074,
                    CLng = 121.61699830987473,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.6209714983616 25.054921975106037, 121.61949951553562 25.054733998173667, 121.6155617005507 25.05524936814469, 121.61559731819011 25.05493264900888, 121.61575094297288 25.054857195507982, 121.61562989224319 25.053232295199926, 121.61591101809796 25.052374473556903, 121.61565536391647 25.051754550867638, 121.61556896987207 25.050398008338135, 121.6158222904009 25.048951233888818, 121.61665496683788 25.049166112381382, 121.61629109767263 25.050811161636346, 121.61658109616324 25.051279102700857, 121.6205684359449 25.053726952973946, 121.62101740658912 25.05446094210853, 121.6209714983616 25.054921975106037))",
                    MaxLat = 25.05524936814469,
                    MaxLng = 121.62101740658912,
                    MinLat = 25.048951233888818,
                    MinLng = 121.61555468446903,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "新富里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.047346355455979,
                    CLng = 121.60933816303624,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.6155617005507 25.05524936814469, 121.61524188520615 25.055275154629335, 121.61513777898712 25.054906902117132, 121.61481580672755 25.054908235294441, 121.6148901733862 25.054402322602122, 121.61476761006384 25.054398452296951, 121.61477113832392 25.054142351784282, 121.60508947784297 25.052496086698358, 121.60520447978888 25.051927063083614, 121.60659638445529 25.050967926219474, 121.60685931509225 25.050593955466972, 121.60737932426179 25.0503679114459, 121.60724432557653 25.049994934640939, 121.60658032808786 25.049764970866832, 121.60591630357253 25.049794948189639, 121.60355044250939 25.050225150007385, 121.60141038025364 25.049105523982625, 121.60032726920191 25.046788547030285, 121.60048180881851 25.043001520889746, 121.600353711892 25.041790530042331, 121.60116353490929 25.04023842346605, 121.60169541550312 25.038381447188574, 121.60246530800144 25.036694331227441, 121.60371431511609 25.037197047332221, 121.605675270891 25.03748693235335, 121.60806226632312 25.038394795137808, 121.60858223187651 25.03833677767971, 121.6084433759949 25.039863778139111, 121.6085854766021 25.042571786839304, 121.60868058622292 25.043160806551555, 121.60893954652182 25.043344748094487, 121.60913664864123 25.044095838897466, 121.60925253238365 25.04423432900801, 121.61050179423965 25.0443172200988, 121.61108825767042 25.044555835765074, 121.61128423755432 25.044947400691502, 121.61127903409144 25.045713416841178, 121.61100266990937 25.046245142549342, 121.61103493291111 25.046872047402644, 121.61153788217459 25.047477362265504, 121.61219998932712 25.047500410069169, 121.61229907981949 25.048285586802173, 121.61270703988968 25.048939588667047, 121.61305906603462 25.049046284351988, 121.61488097846738 25.048838220802779, 121.6158222904009 25.048951233888818, 121.61556896987207 25.050398008338135, 121.61565536391647 25.051754550867638, 121.61591101809796 25.052374473556903, 121.61562989224319 25.053232295199926, 121.61575094297288 25.054857195507982, 121.61559731819011 25.05493264900888, 121.6155617005507 25.05524936814469))",
                    MaxLat = 25.055275154629335,
                    MaxLng = 121.61591101809796,
                    MinLat = 25.036694331227441,
                    MinLng = 121.60030917065144,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "中南里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.054480496781579,
                    CLng = 121.60145048649017,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.60651173632763 25.052686583334349, 121.60579572421314 25.056086308549254, 121.60414901991967 25.055925650887609, 121.60302536002811 25.055113275415255, 121.60214980422118 25.054739867495112, 121.60111673052693 25.054567527864457, 121.59988253516751 25.054745862644509, 121.59941073301539 25.054335741441722, 121.59817826022399 25.054074749974674, 121.59760435340601 25.054061040059551, 121.59558626655345 25.054457495713326, 121.59475972834232 25.054408705457625, 121.59548984161786 25.05140939912647, 121.59865058958417 25.051657705215792, 121.60651173632763 25.052686583334349))",
                    MaxLat = 25.056086308549254,
                    MaxLng = 121.60651173632763,
                    MinLat = 25.05140939912647,
                    MinLng = 121.59475972834232,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "東明里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.044877676182583,
                    CLng = 121.59663057398748,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.60089024395151 25.047908339051489, 121.60150341204888 25.049207536576493, 121.6032533739975 25.050123154989191, 121.60379538803551 25.050233093170934, 121.60658032808786 25.049764970866832, 121.60724432557653 25.049994934640939, 121.60737932426179 25.0503679114459, 121.60685931509225 25.050593955466972, 121.60659638445529 25.050967926219474, 121.60520447978888 25.051927063083614, 121.60508947784297 25.052496086698358, 121.59865058958417 25.051657705215792, 121.59550668711049 25.051411932558434, 121.59377178274863 25.051151094582316, 121.5940189612014 25.050437531072426, 121.59090090103842 25.049699396687355, 121.59103323069654 25.048778624138475, 121.59074078624957 25.048427280486635, 121.58969457854231 25.04798145842194, 121.58962374874446 25.04772385159384, 121.59016615716111 25.046482787588804, 121.59231626299336 25.045954954401587, 121.59339791807402 25.046431998922952, 121.59359858006853 25.046190364177555, 121.5936504188749 25.046022282026616, 121.59329187561141 25.045368182985317, 121.59384025717463 25.045354001886974, 121.59394574213802 25.045199322133822, 121.59354209696663 25.044658455435723, 121.59375620495011 25.044001554758381, 121.59371422617565 25.043543479369308, 121.59400560059989 25.043320653425923, 121.59410179032612 25.042697691358391, 121.59455894580204 25.042611813607671, 121.59470159510978 25.041228211795584, 121.59450420431928 25.041044107004318, 121.59384491972391 25.041018649170969, 121.59370322574458 25.040824272484432, 121.59416789726706 25.039535405753771, 121.59477834965494 25.039440008245514, 121.59521331099961 25.038693237263118, 121.5955315787471 25.038673530432511, 121.59594457789146 25.038193705527082, 121.59631952911413 25.037539675817253, 121.59747007449845 25.034298614929089, 121.59832906706842 25.034814595288722, 121.60024125751694 25.035412457503949, 121.60246530800144 25.036694331227441, 121.60169541550312 25.038381447188574, 121.60116353490929 25.04023842346605, 121.600353711892 25.041790530042331, 121.60048180881851 25.043001520889746, 121.60032726920191 25.046788547030285, 121.60089024395151 25.047908339051489))",
                    MaxLat = 25.052496086698358,
                    MaxLng = 121.60737932426179,
                    MinLat = 25.034298614929089,
                    MinLng = 121.58962374874446,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "新光里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.041865994103684,
                    CLng = 121.59086656536955,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59016615716111 25.046482787588804, 121.58782702296502 25.046538607427724, 121.58582394653024 25.046042340063639, 121.58683639309042 25.044440565793931, 121.58666812874483 25.043422574063769, 121.58718304848983 25.042297509645795, 121.59020477590734 25.038791302499462, 121.59048869435904 25.037793279976487, 121.59124663187121 25.037519214115093, 121.5916237552738 25.038727241910571, 121.59139371600976 25.038925261992528, 121.59110385352867 25.040029311311507, 121.59064382478192 25.040403316450483, 121.59075892221661 25.041190280339272, 121.59103987628829 25.041330287237514, 121.59152689174987 25.041282300809804, 121.592292772825 25.040037216945915, 121.59265677679484 25.04007621556314, 121.59293779535405 25.040450883096796, 121.59392646696749 25.040195672893994, 121.59376366234434 25.0409649755238, 121.59450420431928 25.041044107004318, 121.59469908809609 25.04121838490175, 121.59455894580204 25.042611813607671, 121.59410179032612 25.042697691358391, 121.59400560059989 25.043320653425923, 121.59371422617565 25.043543479369308, 121.59375620495011 25.044001554758381, 121.59354209696663 25.044658455435723, 121.59394574213802 25.045199322133822, 121.59384025717463 25.045354001886974, 121.59329187561141 25.045368182985317, 121.5936504188749 25.046022282026616, 121.59339791807402 25.046431998922952, 121.59231626299336 25.045954954401587, 121.59016615716111 25.046482787588804))",
                    MaxLat = 25.046589158816829,
                    MaxLng = 121.59470159510978,
                    MinLat = 25.037519214115093,
                    MinLng = 121.58582394653024,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "成福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.045727732367673,
                    CLng = 121.58458630620379,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.58701540807709 25.046391875704362, 121.58692881816012 25.046744514650047, 121.58592028274064 25.047292601971449, 121.58509363154077 25.048021530591797, 121.584037584425 25.047064062870248, 121.58195071322328 25.0442193944568, 121.58284882251101 25.043452303078144, 121.58340928631522 25.044208799749587, 121.58413562260033 25.044786514589738, 121.5843212638941 25.044532784991397, 121.58620281764713 25.045428464004587, 121.58582394653024 25.046042340063639, 121.58701540807709 25.046391875704362))",
                    MaxLat = 25.048021530591797,
                    MaxLng = 121.58701540807709,
                    MinLat = 25.043452303078144,
                    MinLng = 121.58195071322328,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "萬福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.055732325853715,
                    CLng = 121.60121411497462,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.60576940020287 25.056079788476431, 121.60534767928782 25.057881640969992, 121.60265505752893 25.057657092519285, 121.60014324479208 25.057071148566521, 121.59500690076716 25.054877052388942, 121.59456763218112 25.054831659179559, 121.59475972834232 25.054408705457625, 121.59558626655345 25.054457495713326, 121.59760435340601 25.054061040059551, 121.59817826022399 25.054074749974674, 121.59941073301539 25.054335741441722, 121.59988253516751 25.054745862644509, 121.60111673052693 25.054567527864457, 121.60214980422118 25.054739867495112, 121.60302536002811 25.055113275415255, 121.60414901991967 25.055925650887609, 121.60576940020287 25.056079788476431))",
                    MaxLat = 25.057881640969992,
                    MaxLng = 121.60576940020287,
                    MinLat = 25.054061040059551,
                    MinLng = 121.59456763218112,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "東新里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.054038810712147,
                    CLng = 121.59091893866014,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59456763218112 25.054831659179559, 121.59208366752097 25.059180153024879, 121.58937931318304 25.056545693769518, 121.58734427553769 25.055215734571057, 121.58778426318261 25.054944746201517, 121.58840628601182 25.053043814654671, 121.58897271763003 25.050397515962473, 121.59548984161786 25.05140939912647, 121.59456763218112 25.054831659179559))",
                    MaxLat = 25.059180153024879,
                    MaxLng = 121.59548984161786,
                    MinLat = 25.050397515962473,
                    MinLng = 121.58734427553769,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "西新里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.057835135618241,
                    CLng = 121.59890961447874,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59637840369965 25.059676960427204, 121.59469851121564 25.060188150157796, 121.59375351823499 25.060115184592309, 121.59247047914833 25.05959958047368, 121.59208366752097 25.059180153024879, 121.59456763218112 25.054831659179559, 121.59500690076716 25.054877052388942, 121.60047664215534 25.057177640302253, 121.60237560693074 25.057622279521262, 121.60534767928782 25.057881640969992, 121.60495218495025 25.059385161026022, 121.60314525838113 25.059137259883464, 121.59941127275586 25.059033800326326, 121.59796432395773 25.059193940106844, 121.59637840369965 25.059676960427204))",
                    MaxLat = 25.060188150157796,
                    MaxLng = 121.60534767928782,
                    MinLat = 25.054831659179559,
                    MinLng = 121.59208366752097,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "重陽里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.055972768539448,
                    CLng = 121.60956206469659,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.61146232979424 25.056266764994977, 121.6110268589044 25.056521204450288, 121.6101653604856 25.056445722631118, 121.60980448281744 25.05911141478547, 121.60916311854878 25.058840048717908, 121.60858215854439 25.060277022972436, 121.60692519173195 25.059657099866445, 121.60495218495025 25.059385161026022, 121.60651173632763 25.052686583334349, 121.61477113832392 25.054142351784282, 121.61476761006384 25.054398452296951, 121.6148901733862 25.054402322602122, 121.61481580672755 25.054908235294441, 121.61513777898712 25.054906902117132, 121.61524188520615 25.055275154629335, 121.61316682271681 25.055361480518624, 121.61146232979424 25.056266764994977))",
                    MaxLat = 25.060277022972436,
                    MaxLng = 121.61524188520615,
                    MinLat = 25.052686583334349,
                    MinLng = 121.60495218495025,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "南港里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageDto
                {
                    CLat = 25.058561468344543,
                    CLng = 121.61551778382673,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.61629936612896 25.063952411313423, 121.61385846790969 25.064574513325862, 121.61260649286517 25.064129869012856, 121.61164743675167 25.062564844032803, 121.61018218238486 25.061049932731265, 121.60858215854439 25.060277022972436, 121.60916311854878 25.058840048717908, 121.60980448281744 25.05911141478547, 121.6101653604856 25.056445722631118, 121.6110268589044 25.056521204450288, 121.61316682271681 25.055361480518624, 121.61664372137548 25.055145505052522, 121.61949951553562 25.054733998173667, 121.6209714983616 25.054921975106037, 121.62091654556774 25.055485977411411, 121.62114754550841 25.055968966777648, 121.62237752738051 25.057021928081259, 121.62334450339677 25.057180591777588, 121.62220270723245 25.058988909713353, 121.6217198359704 25.060225018156547, 121.62036891613461 25.06191512132088, 121.61946919588553 25.062674158030077, 121.6184742468111 25.063173188817757, 121.61629936612896 25.063952411313423))",
                    MaxLat = 25.064574513325862,
                    MaxLng = 121.62334450339677,
                    MinLat = 25.054733998173667,
                    MinLng = 121.60858215854439,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "三重里",
                    ZipCode = "115",
                    ZipID = 11
                }
            };

            #endregion "expected parameter"

            #region "villages parameter"

            var villages = new List<VillageModel>
            {
                new VillageModel
                {
                    CLat = 25.039268249024005,
                    CLng = 121.5925565682039,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59392646696749 25.040195672893994, 121.59293779535405 25.040450883096796, 121.59268482223071 25.040095154629274, 121.59232582843391 25.040027243729707, 121.59208781625897 25.040199202057838, 121.59152689174987 25.041282300809804, 121.5910019253558 25.041325291322778, 121.59072787280694 25.041124311441155, 121.59064382478192 25.040403316450483, 121.59110385352867 25.040029311311507, 121.59139371600976 25.038925261992528, 121.59162169782239 25.038741245346479, 121.59124663187121 25.037519214115093, 121.59149353810558 25.036049208089569, 121.5923662899645 25.035066172613124, 121.59348118883995 25.034802794182113, 121.59362814100822 25.034393827130497, 121.59453112718769 25.033560726757074, 121.59537502448349 25.033035745049371, 121.59674408101743 25.033987685272763, 121.59747007449845 25.034298614929089, 121.59631952911413 25.037539675817253, 121.59594457789146 25.038193705527082, 121.5955315787471 25.038673530432511, 121.59521331099961 25.038693237263118, 121.59477834965494 25.039440008245514, 121.59416789726706 25.039535405753771, 121.59392646696749 25.040195672893994))",
                    MaxLat = 25.041332310342092,
                    MaxLng = 121.59747007449845,
                    MinLat = 25.033035745049371,
                    MinLng = 121.59062783109083,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "仁福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.037827828397894,
                    CLng = 121.59006631946384,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59036456220424 25.038134050365674, 121.59020477590734 25.038791302499462, 121.58755903996321 25.041773742961272, 121.58675096226943 25.04160374448178, 121.58699983372809 25.040960814616717, 121.58680438807755 25.040904156642068, 121.5871628899294 25.039694519450315, 121.58744791046161 25.039780433002505, 121.58770883151192 25.039028456165763, 121.58837076692177 25.037954361300084, 121.58908273395018 25.037432372005156, 121.58934568492091 25.036783315497708, 121.58914356279379 25.035844284589956, 121.58955449437889 25.03515328799849, 121.58931432231623 25.034297298024512, 121.59087716787839 25.032831191949352, 121.59217503393783 25.031321072206257, 121.59316008295676 25.032309824019372, 121.59389104211367 25.0324167877292, 121.59428802489488 25.032689771187808, 121.59498502439847 25.032804720546462, 121.59537502448349 25.033035745049371, 121.59453112718769 25.033560726757074, 121.59362814100822 25.034393827130497, 121.59348118883995 25.034802794182113, 121.5923662899645 25.035066172613124, 121.59149353810558 25.036049208089569, 121.59124663187121 25.037519214115093, 121.59067392837431 25.037661762880827, 121.59036456220424 25.038134050365674))",
                    MaxLat = 25.041773742961272,
                    MaxLng = 121.59537502448349,
                    MinLat = 25.031321072206257,
                    MinLng = 121.58675096226943,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "百福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.043259988579027,
                    CLng = 121.58566004997273,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.58677833773351 25.043096167578202, 121.58664820217969 25.043821555082957, 121.58683639309042 25.044440565793931, 121.58620281764713 25.045428464004587, 121.5843212638941 25.044532784991397, 121.58413562260033 25.044786514589738, 121.58340928631522 25.044208799749587, 121.58284882251101 25.043452303078144, 121.58432279525441 25.042266819215595, 121.58551846880398 25.041562076118922, 121.58596605487847 25.041658323484569, 121.58659853525346 25.041573707934397, 121.58755903996321 25.041773742961272, 121.58677833773351 25.043096167578202))",
                    MaxLat = 25.045428464004587,
                    MaxLng = 121.58755903996321,
                    MinLat = 25.041562076118922,
                    MinLng = 121.58284882251101,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "鴻福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.031394370322719,
                    CLng = 121.63363110702727,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.63013127348239 25.035137081949941, 121.62987832277221 25.036468106742539, 121.62631856449698 25.037981223105348, 121.62507062718566 25.037786307472427, 121.62462463885159 25.038423364235875, 121.62165492603329 25.040397781158017, 121.61933918757836 25.043301934102647, 121.61751514279999 25.041923050065062, 121.61779414575979 25.041129965491937, 121.61807609188588 25.040842938641273, 121.61827801242818 25.04009893034408, 121.61821395314482 25.039124978727443, 121.61797493531077 25.038500992789221, 121.61809875755493 25.035579990781461, 121.61834947790591 25.034915955789447, 121.61915433301272 25.033829863942241, 121.61909925067296 25.0324629442894, 121.6193681179782 25.030714920727778, 121.62034794862497 25.028268888064183, 121.62071585896561 25.026864808833484, 121.6205907655649 25.026058873634756, 121.61849650485128 25.023338992956052, 121.61648638715133 25.020299110713921, 121.61591237787943 25.019730144283436, 121.61743925197719 25.018380046163134, 121.61894412235526 25.018042971749729, 121.62019909816117 25.018490899885069, 121.62273794636037 25.017155551784452, 121.62632094220727 25.018730388093697, 121.62653299720481 25.019725374449209, 121.62716397754687 25.019965319228639, 121.62771095920185 25.019291265599922, 121.62893792715012 25.020072220141738, 121.62993104275439 25.021547117797315, 121.63052411118262 25.023721090541184, 121.63176525816873 25.025711008556211, 121.63248824744655 25.025668693844594, 121.63612692948915 25.02346458456968, 121.63769399358254 25.024137468963495, 121.64062180767554 25.023420272995921, 121.64304581379577 25.024455860119428, 121.64432576829748 25.024021812605952, 121.64585265153929 25.022517766497423, 121.64602554913213 25.021761758426805, 121.64695056624018 25.021614720850721, 121.64874161108479 25.022786613984284, 121.65005467056555 25.023974479765794, 121.65132962738753 25.023853421265212, 121.65388159985687 25.024398987495776, 121.6573124778422 25.023387805975656, 121.66090943674691 25.023442552279359, 121.66260340927165 25.022939090921813, 121.66401348847025 25.023273002640654, 121.66509467125326 25.025513890589902, 121.66480202519192 25.028126994023552, 121.66539006936364 25.028803969992222, 121.6658821502583 25.029841898392757, 121.66467707473385 25.02948098953523, 121.66314710859632 25.030199032478755, 121.66097508898484 25.0304975662711, 121.65752101313485 25.028800742278573, 121.65718197047683 25.028121825745476, 121.65489192747836 25.027640942778927, 121.65039397902979 25.027563475555382, 121.64802308528539 25.028466601932656, 121.64657907495588 25.027920687123398, 121.6463370616048 25.028230705964788, 121.64644117417345 25.028883670153562, 121.64446419199794 25.02961880535463, 121.64277536205076 25.030775850614834, 121.63981852681994 25.031963260269759, 121.6378396897621 25.03368037564443, 121.63389991494773 25.034792606179135, 121.63332817161374 25.035882662198226, 121.63013127348239 25.035137081949941))",
                    MaxLat = 25.043301934102647,
                    MaxLng = 121.6658821502583,
                    MinLat = 25.017155551784452,
                    MinLng = 121.61591237787943,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "舊莊里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.027817071790786,
                    CLng = 121.60122265653609,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.61797493791028 25.038158977953664, 121.61618603143165 25.038707057649624, 121.61260908668055 25.038375487420335, 121.61193314285683 25.038510546407803, 121.61118218423971 25.038270577958489, 121.60806226632312 25.038394795137808, 121.605675270891 25.03748693235335, 121.60371431511609 25.037197047332221, 121.60279326641286 25.036902293195098, 121.60024125751694 25.035412457503949, 121.59793004241027 25.034629572215955, 121.59674408101743 25.033987685272763, 121.59516607340612 25.032874692293419, 121.59451205526597 25.0327747407575, 121.59389104211367 25.0324167877292, 121.59316008295676 25.032309824019372, 121.59217503393783 25.031321072206257, 121.59135692269413 25.030116157419762, 121.58973693258082 25.029365241081603, 121.58826091484889 25.02844832523639, 121.58664187602645 25.026823361228011, 121.58507648582749 25.023673435688011, 121.5849743996293 25.022257453675135, 121.58437239689228 25.021617405829684, 121.58438628945461 25.02056438588053, 121.58357115516095 25.018557453127197, 121.58280520961985 25.018741682236243, 121.58155916576095 25.018047711027254, 121.58014581245762 25.017012809795368, 121.57767967419454 25.014136851973632, 121.57818366615298 25.013232783256324, 121.57917261406777 25.012893770419122, 121.57982251389622 25.012418648188351, 121.58068854491746 25.012253645730656, 121.58147749677191 25.012675568113593, 121.58275451575493 25.01275652804873, 121.58318856077896 25.01303938742841, 121.58459251459149 25.013055273954496, 121.585740523906 25.013451287235728, 121.58822746146485 25.013522099893205, 121.58885449667383 25.013777128161529, 121.59118643453806 25.014227004312595, 121.59168149070118 25.014940951792219, 121.59296743078608 25.014542749685102, 121.59387844135597 25.014929708112096, 121.59433244150324 25.015514688530892, 121.59539445937918 25.015743658654664, 121.59589537477366 25.014905567191708, 121.59716135881078 25.014524521645082, 121.59973824447454 25.014535369232547, 121.6014482713428 25.015309287833929, 121.60223627387956 25.014949273134054, 121.60308724476296 25.015670063483451, 121.60337355176694 25.017005992456053, 121.60438265018098 25.0192909913598, 121.60798955745537 25.019561779460972, 121.6096084971187 25.019062713620496, 121.61038550673551 25.019769648671243, 121.61104253770593 25.019862565581938, 121.61244248488886 25.019321482168056, 121.61461338926271 25.019223222066127, 121.61591237787943 25.019730144283436, 121.61648638715133 25.020299110713921, 121.62071278882098 25.026400828998685, 121.62034794862497 25.028268888064183, 121.6193681179782 25.030714920727778, 121.61909925067296 25.0324629442894, 121.61915433301272 25.033829863942241, 121.61834947790591 25.034915955789447, 121.61809875755493 25.035579990781461, 121.61797493791028 25.038158977953664))",
                    MaxLat = 25.038707057649624,
                    MaxLng = 121.62071585896561,
                    MinLat = 25.012253645730656,
                    MinLng = 121.57767967419454,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "九如里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.043229481827,
                    CLng = 121.61348824352424,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.61800398981896 25.045610911506035, 121.61707080869577 25.047291059499102, 121.61665496683788 25.049166112381382, 121.61488097846738 25.048838220802779, 121.61305906603462 25.049046284351988, 121.61270703988968 25.048939588667047, 121.61229907981949 25.048285586802173, 121.61219998932712 25.047500410069169, 121.61153788217459 25.047477362265504, 121.61103493291111 25.046872047402644, 121.61100266990937 25.046245142549342, 121.61127903409144 25.045713416841178, 121.61128423755432 25.044947400691502, 121.61108825767042 25.044555835765074, 121.61050179423965 25.0443172200988, 121.60925253238365 25.04423432900801, 121.60895960365249 25.04376478207719, 121.60893954652182 25.043344748094487, 121.60868058622292 25.043160806551555, 121.6084433759949 25.039863778139111, 121.60858223187651 25.03833677767971, 121.61118218423971 25.038270577958489, 121.61193314285683 25.038510546407803, 121.61260908668055 25.038375487420335, 121.61618603143165 25.038707057649624, 121.61797493791028 25.038158977953664, 121.61827801242818 25.04009893034408, 121.61807609188588 25.040842938641273, 121.61779414575979 25.041129965491937, 121.61751514279999 25.041923050065062, 121.61933918757836 25.043301934102647, 121.61800398981896 25.045610911506035))",
                    MaxLat = 25.049166112381382,
                    MaxLng = 121.61933918757836,
                    MinLat = 25.038158977953664,
                    MinLng = 121.6084433759949,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "中研里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.047945856553632,
                    CLng = 121.58859021574403,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.58962374874446 25.04772385159384, 121.58969457854231 25.04798145842194, 121.59074078624957 25.048427280486635, 121.59103323069654 25.048778624138475, 121.59090090103842 25.049699396687355, 121.58658748354647 25.048679973271916, 121.58509363154077 25.048021530591797, 121.58592028274064 25.047292601971449, 121.58692881816012 25.046744514650047, 121.58701540807709 25.046391875704362, 121.58835509447766 25.046579836115431, 121.59016615716111 25.046482787588804, 121.58962374874446 25.04772385159384))",
                    MaxLat = 25.049699396687355,
                    MaxLng = 121.59103323069654,
                    MinLat = 25.046391875704362,
                    MinLng = 121.58509363154077,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "聯成里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.048729281982855,
                    CLng = 121.58593631410986,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59090090103842 25.049699396687355, 121.5940189612014 25.050437531072426, 121.59377178274863 25.051151094582316, 121.58258779107243 25.049368216998026, 121.58140984706147 25.048931647119971, 121.58012762361919 25.048881493506553, 121.58016812533667 25.048107327551271, 121.5806459293232 25.047390744463385, 121.58069748671446 25.04537063117656, 121.58143551575245 25.044688167911808, 121.58122879333145 25.044696155893767, 121.58137248880678 25.0442191719516, 121.58193939288091 25.044204268100167, 121.584037584425 25.047064062870248, 121.58509363154077 25.048021530591797, 121.58658748354647 25.048679973271916, 121.59090090103842 25.049699396687355))",
                    MaxLat = 25.051151094582316,
                    MaxLng = 121.5940189612014,
                    MinLat = 25.044204268100167,
                    MinLng = 121.58012762361919,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "合成里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.051445236771361,
                    CLng = 121.5841234671511,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.58897271763003 25.050397515962473, 121.58840628601182 25.053043814654671, 121.58778426318261 25.054944746201517, 121.58734427553769 25.055215734571057, 121.58618024196359 25.054456743262982, 121.58305825564381 25.05350223540168, 121.57980407408535 25.052969435442666, 121.58004996125786 25.051404366328963, 121.57966892870807 25.050445339026705, 121.58008193829053 25.04955225548396, 121.58012762361919 25.048881493506553, 121.58140984706147 25.048931647119971, 121.58258779107243 25.049368216998026, 121.58897271763003 25.050397515962473))",
                    MaxLat = 25.055215734571057,
                    MaxLng = 121.58897271763003,
                    MinLat = 25.048881493506553,
                    MinLng = 121.57966892870807,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "玉成里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.052775668080074,
                    CLng = 121.61699830987473,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.6209714983616 25.054921975106037, 121.61949951553562 25.054733998173667, 121.6155617005507 25.05524936814469, 121.61559731819011 25.05493264900888, 121.61575094297288 25.054857195507982, 121.61562989224319 25.053232295199926, 121.61591101809796 25.052374473556903, 121.61565536391647 25.051754550867638, 121.61556896987207 25.050398008338135, 121.6158222904009 25.048951233888818, 121.61665496683788 25.049166112381382, 121.61629109767263 25.050811161636346, 121.61658109616324 25.051279102700857, 121.6205684359449 25.053726952973946, 121.62101740658912 25.05446094210853, 121.6209714983616 25.054921975106037))",
                    MaxLat = 25.05524936814469,
                    MaxLng = 121.62101740658912,
                    MinLat = 25.048951233888818,
                    MinLng = 121.61555468446903,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "新富里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.047346355455979,
                    CLng = 121.60933816303624,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.6155617005507 25.05524936814469, 121.61524188520615 25.055275154629335, 121.61513777898712 25.054906902117132, 121.61481580672755 25.054908235294441, 121.6148901733862 25.054402322602122, 121.61476761006384 25.054398452296951, 121.61477113832392 25.054142351784282, 121.60508947784297 25.052496086698358, 121.60520447978888 25.051927063083614, 121.60659638445529 25.050967926219474, 121.60685931509225 25.050593955466972, 121.60737932426179 25.0503679114459, 121.60724432557653 25.049994934640939, 121.60658032808786 25.049764970866832, 121.60591630357253 25.049794948189639, 121.60355044250939 25.050225150007385, 121.60141038025364 25.049105523982625, 121.60032726920191 25.046788547030285, 121.60048180881851 25.043001520889746, 121.600353711892 25.041790530042331, 121.60116353490929 25.04023842346605, 121.60169541550312 25.038381447188574, 121.60246530800144 25.036694331227441, 121.60371431511609 25.037197047332221, 121.605675270891 25.03748693235335, 121.60806226632312 25.038394795137808, 121.60858223187651 25.03833677767971, 121.6084433759949 25.039863778139111, 121.6085854766021 25.042571786839304, 121.60868058622292 25.043160806551555, 121.60893954652182 25.043344748094487, 121.60913664864123 25.044095838897466, 121.60925253238365 25.04423432900801, 121.61050179423965 25.0443172200988, 121.61108825767042 25.044555835765074, 121.61128423755432 25.044947400691502, 121.61127903409144 25.045713416841178, 121.61100266990937 25.046245142549342, 121.61103493291111 25.046872047402644, 121.61153788217459 25.047477362265504, 121.61219998932712 25.047500410069169, 121.61229907981949 25.048285586802173, 121.61270703988968 25.048939588667047, 121.61305906603462 25.049046284351988, 121.61488097846738 25.048838220802779, 121.6158222904009 25.048951233888818, 121.61556896987207 25.050398008338135, 121.61565536391647 25.051754550867638, 121.61591101809796 25.052374473556903, 121.61562989224319 25.053232295199926, 121.61575094297288 25.054857195507982, 121.61559731819011 25.05493264900888, 121.6155617005507 25.05524936814469))",
                    MaxLat = 25.055275154629335,
                    MaxLng = 121.61591101809796,
                    MinLat = 25.036694331227441,
                    MinLng = 121.60030917065144,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "中南里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.054480496781579,
                    CLng = 121.60145048649017,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.60651173632763 25.052686583334349, 121.60579572421314 25.056086308549254, 121.60414901991967 25.055925650887609, 121.60302536002811 25.055113275415255, 121.60214980422118 25.054739867495112, 121.60111673052693 25.054567527864457, 121.59988253516751 25.054745862644509, 121.59941073301539 25.054335741441722, 121.59817826022399 25.054074749974674, 121.59760435340601 25.054061040059551, 121.59558626655345 25.054457495713326, 121.59475972834232 25.054408705457625, 121.59548984161786 25.05140939912647, 121.59865058958417 25.051657705215792, 121.60651173632763 25.052686583334349))",
                    MaxLat = 25.056086308549254,
                    MaxLng = 121.60651173632763,
                    MinLat = 25.05140939912647,
                    MinLng = 121.59475972834232,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "東明里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.044877676182583,
                    CLng = 121.59663057398748,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.60089024395151 25.047908339051489, 121.60150341204888 25.049207536576493, 121.6032533739975 25.050123154989191, 121.60379538803551 25.050233093170934, 121.60658032808786 25.049764970866832, 121.60724432557653 25.049994934640939, 121.60737932426179 25.0503679114459, 121.60685931509225 25.050593955466972, 121.60659638445529 25.050967926219474, 121.60520447978888 25.051927063083614, 121.60508947784297 25.052496086698358, 121.59865058958417 25.051657705215792, 121.59550668711049 25.051411932558434, 121.59377178274863 25.051151094582316, 121.5940189612014 25.050437531072426, 121.59090090103842 25.049699396687355, 121.59103323069654 25.048778624138475, 121.59074078624957 25.048427280486635, 121.58969457854231 25.04798145842194, 121.58962374874446 25.04772385159384, 121.59016615716111 25.046482787588804, 121.59231626299336 25.045954954401587, 121.59339791807402 25.046431998922952, 121.59359858006853 25.046190364177555, 121.5936504188749 25.046022282026616, 121.59329187561141 25.045368182985317, 121.59384025717463 25.045354001886974, 121.59394574213802 25.045199322133822, 121.59354209696663 25.044658455435723, 121.59375620495011 25.044001554758381, 121.59371422617565 25.043543479369308, 121.59400560059989 25.043320653425923, 121.59410179032612 25.042697691358391, 121.59455894580204 25.042611813607671, 121.59470159510978 25.041228211795584, 121.59450420431928 25.041044107004318, 121.59384491972391 25.041018649170969, 121.59370322574458 25.040824272484432, 121.59416789726706 25.039535405753771, 121.59477834965494 25.039440008245514, 121.59521331099961 25.038693237263118, 121.5955315787471 25.038673530432511, 121.59594457789146 25.038193705527082, 121.59631952911413 25.037539675817253, 121.59747007449845 25.034298614929089, 121.59832906706842 25.034814595288722, 121.60024125751694 25.035412457503949, 121.60246530800144 25.036694331227441, 121.60169541550312 25.038381447188574, 121.60116353490929 25.04023842346605, 121.600353711892 25.041790530042331, 121.60048180881851 25.043001520889746, 121.60032726920191 25.046788547030285, 121.60089024395151 25.047908339051489))",
                    MaxLat = 25.052496086698358,
                    MaxLng = 121.60737932426179,
                    MinLat = 25.034298614929089,
                    MinLng = 121.58962374874446,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "新光里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.041865994103684,
                    CLng = 121.59086656536955,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59016615716111 25.046482787588804, 121.58782702296502 25.046538607427724, 121.58582394653024 25.046042340063639, 121.58683639309042 25.044440565793931, 121.58666812874483 25.043422574063769, 121.58718304848983 25.042297509645795, 121.59020477590734 25.038791302499462, 121.59048869435904 25.037793279976487, 121.59124663187121 25.037519214115093, 121.5916237552738 25.038727241910571, 121.59139371600976 25.038925261992528, 121.59110385352867 25.040029311311507, 121.59064382478192 25.040403316450483, 121.59075892221661 25.041190280339272, 121.59103987628829 25.041330287237514, 121.59152689174987 25.041282300809804, 121.592292772825 25.040037216945915, 121.59265677679484 25.04007621556314, 121.59293779535405 25.040450883096796, 121.59392646696749 25.040195672893994, 121.59376366234434 25.0409649755238, 121.59450420431928 25.041044107004318, 121.59469908809609 25.04121838490175, 121.59455894580204 25.042611813607671, 121.59410179032612 25.042697691358391, 121.59400560059989 25.043320653425923, 121.59371422617565 25.043543479369308, 121.59375620495011 25.044001554758381, 121.59354209696663 25.044658455435723, 121.59394574213802 25.045199322133822, 121.59384025717463 25.045354001886974, 121.59329187561141 25.045368182985317, 121.5936504188749 25.046022282026616, 121.59339791807402 25.046431998922952, 121.59231626299336 25.045954954401587, 121.59016615716111 25.046482787588804))",
                    MaxLat = 25.046589158816829,
                    MaxLng = 121.59470159510978,
                    MinLat = 25.037519214115093,
                    MinLng = 121.58582394653024,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "成福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.045727732367673,
                    CLng = 121.58458630620379,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.58701540807709 25.046391875704362, 121.58692881816012 25.046744514650047, 121.58592028274064 25.047292601971449, 121.58509363154077 25.048021530591797, 121.584037584425 25.047064062870248, 121.58195071322328 25.0442193944568, 121.58284882251101 25.043452303078144, 121.58340928631522 25.044208799749587, 121.58413562260033 25.044786514589738, 121.5843212638941 25.044532784991397, 121.58620281764713 25.045428464004587, 121.58582394653024 25.046042340063639, 121.58701540807709 25.046391875704362))",
                    MaxLat = 25.048021530591797,
                    MaxLng = 121.58701540807709,
                    MinLat = 25.043452303078144,
                    MinLng = 121.58195071322328,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "萬福里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.055732325853715,
                    CLng = 121.60121411497462,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.60576940020287 25.056079788476431, 121.60534767928782 25.057881640969992, 121.60265505752893 25.057657092519285, 121.60014324479208 25.057071148566521, 121.59500690076716 25.054877052388942, 121.59456763218112 25.054831659179559, 121.59475972834232 25.054408705457625, 121.59558626655345 25.054457495713326, 121.59760435340601 25.054061040059551, 121.59817826022399 25.054074749974674, 121.59941073301539 25.054335741441722, 121.59988253516751 25.054745862644509, 121.60111673052693 25.054567527864457, 121.60214980422118 25.054739867495112, 121.60302536002811 25.055113275415255, 121.60414901991967 25.055925650887609, 121.60576940020287 25.056079788476431))",
                    MaxLat = 25.057881640969992,
                    MaxLng = 121.60576940020287,
                    MinLat = 25.054061040059551,
                    MinLng = 121.59456763218112,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "東新里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.054038810712147,
                    CLng = 121.59091893866014,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59456763218112 25.054831659179559, 121.59208366752097 25.059180153024879, 121.58937931318304 25.056545693769518, 121.58734427553769 25.055215734571057, 121.58778426318261 25.054944746201517, 121.58840628601182 25.053043814654671, 121.58897271763003 25.050397515962473, 121.59548984161786 25.05140939912647, 121.59456763218112 25.054831659179559))",
                    MaxLat = 25.059180153024879,
                    MaxLng = 121.59548984161786,
                    MinLat = 25.050397515962473,
                    MinLng = 121.58734427553769,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "西新里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.057835135618241,
                    CLng = 121.59890961447874,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.59637840369965 25.059676960427204, 121.59469851121564 25.060188150157796, 121.59375351823499 25.060115184592309, 121.59247047914833 25.05959958047368, 121.59208366752097 25.059180153024879, 121.59456763218112 25.054831659179559, 121.59500690076716 25.054877052388942, 121.60047664215534 25.057177640302253, 121.60237560693074 25.057622279521262, 121.60534767928782 25.057881640969992, 121.60495218495025 25.059385161026022, 121.60314525838113 25.059137259883464, 121.59941127275586 25.059033800326326, 121.59796432395773 25.059193940106844, 121.59637840369965 25.059676960427204))",
                    MaxLat = 25.060188150157796,
                    MaxLng = 121.60534767928782,
                    MinLat = 25.054831659179559,
                    MinLng = 121.59208366752097,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "重陽里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.055972768539448,
                    CLng = 121.60956206469659,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.61146232979424 25.056266764994977, 121.6110268589044 25.056521204450288, 121.6101653604856 25.056445722631118, 121.60980448281744 25.05911141478547, 121.60916311854878 25.058840048717908, 121.60858215854439 25.060277022972436, 121.60692519173195 25.059657099866445, 121.60495218495025 25.059385161026022, 121.60651173632763 25.052686583334349, 121.61477113832392 25.054142351784282, 121.61476761006384 25.054398452296951, 121.6148901733862 25.054402322602122, 121.61481580672755 25.054908235294441, 121.61513777898712 25.054906902117132, 121.61524188520615 25.055275154629335, 121.61316682271681 25.055361480518624, 121.61146232979424 25.056266764994977))",
                    MaxLat = 25.060277022972436,
                    MaxLng = 121.61524188520615,
                    MinLat = 25.052686583334349,
                    MinLng = 121.60495218495025,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "南港里",
                    ZipCode = "115",
                    ZipID = 11
                },
                new VillageModel
                {
                    CLat = 25.058561468344543,
                    CLng = 121.61551778382673,
                    CityCode = "0000",
                    GPSResult = null,
                    GeoString = "POLYGON ((121.61629936612896 25.063952411313423, 121.61385846790969 25.064574513325862, 121.61260649286517 25.064129869012856, 121.61164743675167 25.062564844032803, 121.61018218238486 25.061049932731265, 121.60858215854439 25.060277022972436, 121.60916311854878 25.058840048717908, 121.60980448281744 25.05911141478547, 121.6101653604856 25.056445722631118, 121.6110268589044 25.056521204450288, 121.61316682271681 25.055361480518624, 121.61664372137548 25.055145505052522, 121.61949951553562 25.054733998173667, 121.6209714983616 25.054921975106037, 121.62091654556774 25.055485977411411, 121.62114754550841 25.055968966777648, 121.62237752738051 25.057021928081259, 121.62334450339677 25.057180591777588, 121.62220270723245 25.058988909713353, 121.6217198359704 25.060225018156547, 121.62036891613461 25.06191512132088, 121.61946919588553 25.062674158030077, 121.6184742468111 25.063173188817757, 121.61629936612896 25.063952411313423))",
                    MaxLat = 25.064574513325862,
                    MaxLng = 121.62334450339677,
                    MinLat = 25.054733998173667,
                    MinLng = 121.60858215854439,
                    SID = 0,
                    UseFlag = "Y",
                    VillageEName = null,
                    VillageName = "三重里",
                    ZipCode = "115",
                    ZipID = 11
                }
            };

            #endregion "villages parameter"

            IVillageRepository repository = Substitute.For<IVillageRepository>();
            repository.Get(Arg.Any<VillageParameterModel>()).Returns(villages);

            var sut = new VillageService();
            sut.VillageRepository = repository;

            // act
            var actual = sut.Get(new VillageParameter() { ZipID = 11 });

            // assert
            expected.ToExpectedObject().ShouldEqual(actual);
        }