public void GetBoolean()
        {
            Boolean value;

            Data.ArtDatabankenService.DataFieldList dataFields;
            WebDataField        webDataField;
            List <WebDataField> webDataFields;

            value             = false;
            webDataField      = new WebDataField();
            webDataField.Name = "Test";
            webDataField.Type = WebDataType.Boolean;
#if DATA_SPECIFIED_EXISTS
            webDataField.TypeSpecified = true;
#endif
            webDataField.Value = value.ToString();
            webDataFields      = new List <WebDataField>();
            webDataFields.Add(webDataField);
            dataFields = new Data.ArtDatabankenService.DataFieldList(webDataFields);
            Assert.AreEqual(dataFields.GetBoolean("Test"), value);

            value             = true;
            webDataField      = new WebDataField();
            webDataField.Name = "Test";
            webDataField.Type = WebDataType.Boolean;
#if DATA_SPECIFIED_EXISTS
            webDataField.TypeSpecified = true;
#endif
            webDataField.Value = value.ToString();
            webDataFields      = new List <WebDataField>();
            webDataFields.Add(webDataField);
            dataFields = new Data.ArtDatabankenService.DataFieldList(webDataFields);
            Assert.AreEqual(dataFields.GetBoolean("Test"), value);
        }
        private Data.ArtDatabankenService.DataFieldList GetDataFieldList(Boolean refresh)
        {
            if (_dataFields.IsNull() || refresh)
            {
                WebTaxon taxon;

                taxon       = WebServiceClient.GetTaxon(BEAR_TAXON_ID, TaxonInformationType.PrintObs);
                _dataFields = new Data.ArtDatabankenService.DataFieldList(taxon.DataFields);
            }
            return(_dataFields);
        }
        public void GetInt64()
        {
            Data.ArtDatabankenService.DataFieldList dataFields;
            Int64               value;
            WebDataField        webDataField;
            List <WebDataField> webDataFields;

            value             = 27343654645654645;
            webDataField      = new WebDataField();
            webDataField.Name = "Test";
            webDataField.Type = WebDataType.Int64;
#if DATA_SPECIFIED_EXISTS
            webDataField.TypeSpecified = true;
#endif
            webDataField.Value = value.ToString();
            webDataFields      = new List <WebDataField>();
            webDataFields.Add(webDataField);
            dataFields = new Data.ArtDatabankenService.DataFieldList(webDataFields);

            Assert.AreEqual(dataFields.GetInt64("Test"), value);
        }
 public DataFieldListTest()
 {
     _dataFields = null;
 }