From af35225281b1c91216890bda7c308e96344524c2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 17 Mar 2020 23:32:46 +0000 Subject: [PATCH] --- PickList/PickListAllTests.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/PickList/PickListAllTests.cs b/PickList/PickListAllTests.cs index bc0d9d0..de75966 100644 --- a/PickList/PickListAllTests.cs +++ b/PickList/PickListAllTests.cs @@ -148,6 +148,24 @@ namespace raven_integration templateList[0]["id"].Value().Should().Be(2);//first one should be a widget } + + /// + /// test get picklist fields list + /// + [Fact] + public async void TemplateFieldList() + { + //RETRIEVE WIDGET PICKLIST FIELDS + ApiResponse a = await Util.GetAsync("PickList/Template/ListFields/2", await Util.GetTokenAsync("BizAdminFull")); + Util.ValidateDataReturnResponseOk(a); + //assert contains at least two records (as we only have two at time of writing this test) + var templateList = ((JArray)a.ObjectResponse["data"]); + templateList.Count.Should().BeGreaterThan(4); + templateList[0]["fieldKey"].Value().Should().Be("widgetactive");//first one should be a widgetactive field + } + + + // /// // /// // ///