public void GetCategoryFeaturesFull()
 {
     GetCategoryFeaturesCall api = new GetCategoryFeaturesCall(this.apiContext);
     DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[] {
     DetailLevelCodeType.ReturnSummary
     };
     api.DetailLevelList = new DetailLevelCodeTypeCollection(detailLevels);
     api.Execute();
     //check whether the call is success.
     Assert.IsTrue(api.ApiResponse.Ack == AckCodeType.Success || api.ApiResponse.Ack == AckCodeType.Warning,"the call is failure!");
     Assert.IsNotNull(api.ApiResponse.FeatureDefinitions);
 }
 public void GetCategoryFeaturesFull2()
 {
     GetCategoryFeaturesCall api = new GetCategoryFeaturesCall(this.apiContext);
     DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[] {
     DetailLevelCodeType.ReturnAll
     };
     api.DetailLevelList = new DetailLevelCodeTypeCollection(detailLevels);
     FeatureIDCodeTypeCollection features=new FeatureIDCodeTypeCollection();
     FeatureIDCodeType feature=FeatureIDCodeType.BestOfferEnabled;
     features.Add(feature);
     api.FeatureIDList=features;
     api.CategoryID=COOKBOOKSCATEGORYID;
     api.Execute();
     //check whether the call is success.
     Assert.IsTrue(api.ApiResponse.Ack == AckCodeType.Success || api.ApiResponse.Ack == AckCodeType.Warning,"the call is failure!");
     Assert.IsNotNull(api.ApiResponse.FeatureDefinitions);
     Assert.AreEqual(api.ApiResponse.Category[0].CategoryID,COOKBOOKSCATEGORYID);
 }