Exemplo n.º 1
0
            public void Search_MunicipalityCodeAndSize_5([Values("851")] string municipalityCode)
            {
                var searchCriteria = new SoegInputType1()
                {
                    SoegObjekt = new SoegObjektType()
                    {
                        SoegAttributListe = new SoegAttributListeType()
                        {
                            SoegRegisterOplysning = new RegisterOplysningType[]
                            {
                                new RegisterOplysningType()
                                {
                                    Item = new CprBorgerType()
                                    {
                                        FolkeregisterAdresse = new AdresseType()
                                        {
                                            Item = new DanskAdresseType()
                                            {
                                                AddressComplete = new AddressCompleteType()
                                                {
                                                    AddressAccess = new AddressAccessType()
                                                    {
                                                        MunicipalityCode = municipalityCode
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    MaksimalAntalKvantitet   = "5",
                    FoersteResultatReference = "0"
                };
                var prov = new DatabaseDataProvider();
                var ret  = prov.Search(searchCriteria);

                Assert.AreEqual(5, ret.Length);
            }