コード例 #1
0
        public void NoFieldIsSet()
        {
            ZipCodeLocationSearchParams locParam = new ZipCodeLocationSearchParams();

            Assert.False(locParam.IsFieldSet("ZipCode"));
            Assert.False(locParam.IsFieldSet("ZipRadius"));
        }
コード例 #2
0
        public void GetAndSetZipRadius()
        {
            ZipCodeLocationSearchParams locParam = new ZipCodeLocationSearchParams();

            locParam.ZipRadius = 100;
            Assert.True(locParam.IsFieldSet("ZipRadius"));
            Assert.Equal("100", locParam.GetFieldAsString("ZipRadius"));
        }
コード例 #3
0
        public void GetAndSetZipCode()
        {
            ZipCodeLocationSearchParams locParam = new ZipCodeLocationSearchParams();

            locParam.ZipCode = "20852";
            Assert.True(locParam.IsFieldSet("ZipCode"));
            Assert.Equal("20852", locParam.GetFieldAsString("ZipCode"));
        }