From bcc4295daa30c2b7a380090eb117dbe3ab365240 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 23 Jan 2020 00:56:03 +0000 Subject: [PATCH] --- DataFilter/DataFilterFilteringLists.cs | 140 +++++++++++++------------ 1 file changed, 71 insertions(+), 69 deletions(-) diff --git a/DataFilter/DataFilterFilteringLists.cs b/DataFilter/DataFilterFilteringLists.cs index a843dfb..38c3925 100644 --- a/DataFilter/DataFilterFilteringLists.cs +++ b/DataFilter/DataFilterFilteringLists.cs @@ -122,7 +122,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -224,7 +224,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -326,7 +326,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -427,7 +427,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -529,7 +529,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -631,7 +631,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -733,7 +733,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -836,7 +836,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -938,7 +938,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1040,7 +1040,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1143,7 +1143,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1247,7 +1247,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1350,7 +1350,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1456,7 +1456,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1565,7 +1565,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1670,7 +1670,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1776,7 +1776,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1879,7 +1879,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -1983,7 +1983,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -2089,7 +2089,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -2195,7 +2195,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -2298,7 +2298,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -2401,7 +2401,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -2523,7 +2523,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -2640,7 +2640,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -2755,7 +2755,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -2871,7 +2871,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -2977,7 +2977,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -3081,7 +3081,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -3186,7 +3186,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -3291,7 +3291,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -3395,7 +3395,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -3501,7 +3501,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -3605,7 +3605,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -3710,7 +3710,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -3814,7 +3814,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -3918,7 +3918,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -4023,7 +4023,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -4127,7 +4127,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -4259,7 +4259,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -4384,7 +4384,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -4506,7 +4506,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -4629,7 +4629,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -4752,7 +4752,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -4875,7 +4875,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -4998,7 +4998,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -5121,7 +5121,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -5243,7 +5243,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -5365,7 +5365,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -5487,7 +5487,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -5609,7 +5609,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -5732,7 +5732,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -5853,7 +5853,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("Test INT DataFilter"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -5955,7 +5955,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("Test INT DataFilter"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -6057,7 +6057,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("IntegerOpGreaterThanOrEqualToFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -6161,7 +6161,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("IntegerOpLessThanFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -6264,7 +6264,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("IntegerOpLessThanOrEqualToFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -6368,7 +6368,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("IntegerNotEqualToFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -6445,6 +6445,8 @@ same as the server does but in a central location here for all tests to use. public async void BoolOpEqualityFilterWorks() { + ApiResponse test = await Util.GetAsync("DataList/test2", await Util.GetTokenAsync("manager", "l3tm3in")); + //OPS: equal to, not equal to //values: true, false @@ -6498,7 +6500,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("Test BOOL DataFilter"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -6525,7 +6527,7 @@ same as the server does but in a central location here for all tests to use. //NOW FETCH WIDGET LIST WITH FILTER //was before refactor to single list - // a = await Util.GetAsync($"Widget/listwidgets?Offset=0&Limit=999&DataFilterId={DataFilterId.ToString()}", await Util.GetTokenAsync("manager", "l3tm3in")); + // a = await Util.GetAsync($"Widget/listwidgets?Offset=0&Limit=999&DataFilterId={DataFilterId.ToString()}", await Util.GetTokenAsync("manager", "l3tm3in")); //http://localhost:7575/api/v8/DataList/List?DataListKey=TestWidgetDataList a = await Util.GetAsync($"DataList/list?DataListKey=TestWidgetDataList&Offset=0&Limit=999&DataFilterId={DataFilterId.ToString()}", await Util.GetTokenAsync("manager", "l3tm3in")); Util.ValidateDataReturnResponseOk(a); @@ -6632,7 +6634,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("Test BOOL DataFilter"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -6746,7 +6748,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("DecimalOpEqualityFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -6848,7 +6850,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("DecimalOpGreaterThanFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -6950,7 +6952,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("DecimalOpGreaterThanOrEqualToFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -7054,7 +7056,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("DecimalOpLessThanFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -7157,7 +7159,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("DecimalOpLessThanOrEqualToFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -7261,7 +7263,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify("DecimalNotEqualToFilterWorks"); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -7405,7 +7407,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray(); @@ -7547,7 +7549,7 @@ same as the server does but in a central location here for all tests to use. d.name = Util.Uniquify(WidgetRunNameStart); d["public"] = true; - d.listKey="TestWidgetDataList"; + d.listKey = "TestWidgetDataList"; dynamic dfilter = new JArray();