Esempio n. 1
0
        public void GeoNames_PostalCodeLookup_ShouldHaveDefaultValues()
        {
            var finder = new PostalCodeLookup();

            finder.ShouldNotBeNull();
            finder.PostalCode.ShouldBeNull();
            finder.Country.ShouldBeNull();
            finder.UserName.ShouldBeNull();
            finder.MaxRows.ShouldEqual(20);
            finder.Style.ShouldEqual(ResultStyle.Medium);
        }
Esempio n. 2
0
        public void GeoNames_PostalCodeLookup_ShouldHaveDefaultValues()
        {
            var finder = new PostalCodeLookup();

            finder.ShouldNotBeNull();
            finder.PostalCode.ShouldBeNull();
            finder.Country.ShouldBeNull();
            finder.UserName.ShouldBeNull();
            finder.MaxRows.ShouldEqual(20);
            finder.Style.ShouldEqual(ResultStyle.Medium);
        }
Esempio n. 3
0
        public void GeoNames_PostalCodeLookup_ShouldBePublic()
        {
            var finder = new PostalCodeLookup
            {
                PostalCode = "32819",
                Country = "US",
                UserName = "******",
                MaxRows = 2,
                Style = ResultStyle.Medium,
            };

            finder.ShouldNotBeNull();
            finder.PostalCode.ShouldEqual("32819");
            finder.Country.ShouldEqual("US");
            finder.UserName.ShouldNotBeNull();
            finder.MaxRows.ShouldEqual(2);
            finder.Style.ShouldEqual(ResultStyle.Medium);
        }
Esempio n. 4
0
        public void GeoNames_PostalCodeLookup_ShouldBePublic()
        {
            var finder = new PostalCodeLookup
            {
                PostalCode = "32819",
                Country    = "US",
                UserName   = "******",
                MaxRows    = 2,
                Style      = ResultStyle.Medium,
            };

            finder.ShouldNotBeNull();
            finder.PostalCode.ShouldEqual("32819");
            finder.Country.ShouldEqual("US");
            finder.UserName.ShouldNotBeNull();
            finder.MaxRows.ShouldEqual(2);
            finder.Style.ShouldEqual(ResultStyle.Medium);
        }