From bebbbb3613e87a4e0db913c2fc9d997135ac82f0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 16 Jan 2019 22:50:47 +0000 Subject: [PATCH] --- Tags/TagOps.cs | 2 ++ Widget/WidgetCrud.cs | 2 ++ Widget/WidgetLists.cs | 6 ++++++ Widget/WidgetRights.cs | 12 ++++++++++++ Widget/WidgetValidationTests.cs | 2 ++ 5 files changed, 24 insertions(+) diff --git a/Tags/TagOps.cs b/Tags/TagOps.cs index fa20156..233a190 100644 --- a/Tags/TagOps.cs +++ b/Tags/TagOps.cs @@ -51,6 +51,8 @@ namespace raven_integration dynamic w = new JObject(); w.name = Util.Uniquify(WidgetRunNameStart); + w.notes="blah"; + w.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); //Tags dynamic InitialTags = new JArray(); foreach (string s in InitialTagsList) diff --git a/Widget/WidgetCrud.cs b/Widget/WidgetCrud.cs index f164bc2..a1580f5 100644 --- a/Widget/WidgetCrud.cs +++ b/Widget/WidgetCrud.cs @@ -223,6 +223,8 @@ namespace raven_integration dynamic w2 = new JObject(); w2.name = Util.Uniquify("PatchConcurrencyViolationShouldFail"); + w2.notes="blah"; + w2.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); w2.dollarAmount = 2.22m; w2.active = true; w2.roles = 0; diff --git a/Widget/WidgetLists.cs b/Widget/WidgetLists.cs index 1ae974d..f37edac 100644 --- a/Widget/WidgetLists.cs +++ b/Widget/WidgetLists.cs @@ -59,6 +59,8 @@ namespace raven_integration dynamic d = new JObject(); d.name = Util.Uniquify(NameStart); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.startDate = DateTime.Now; d.endDate = DateTime.Now.AddHours(1); @@ -68,6 +70,8 @@ namespace raven_integration d = new JObject(); d.name = Util.Uniquify(NameStart); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.startDate = DateTime.Now.AddHours(1); d.endDate = DateTime.Now.AddHours(2); a = await Util.PostAsync(RouteName, await Util.GetTokenAsync("manager", "l3tm3in"), d.ToString()); @@ -76,6 +80,8 @@ namespace raven_integration d = new JObject(); d.name = Util.Uniquify(NameStart); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.startDate = DateTime.Now.AddHours(2); d.endDate = DateTime.Now.AddHours(3); a = await Util.PostAsync(RouteName, await Util.GetTokenAsync("manager", "l3tm3in"), d.ToString()); diff --git a/Widget/WidgetRights.cs b/Widget/WidgetRights.cs index 52794c2..d149952 100644 --- a/Widget/WidgetRights.cs +++ b/Widget/WidgetRights.cs @@ -70,6 +70,8 @@ namespace raven_integration //CREATE dynamic d = new JObject(); d.name = Util.Uniquify("ServerShouldAllowOwnerOnlyRightsUserToPatchOwn TEST WIDGET"); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.created = DateTime.Now.ToString(); d.dollarAmount = 1.11m; d.active = true; @@ -100,6 +102,8 @@ namespace raven_integration //CREATE dynamic d = new JObject(); d.name = Util.Uniquify("ServerShouldDisAllowOwnerOnlyRightsUserToPatchNonOwned TEST WIDGET"); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.created = DateTime.Now.ToString(); d.dollarAmount = 1.11m; d.active = true; @@ -137,6 +141,8 @@ namespace raven_integration //CREATE dynamic d = new JObject(); d.name = Util.Uniquify("ServerShouldAllowOwnerOnlyRightsUserToPutOwn TEST WIDGET"); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.created = DateTime.Now.ToString(); d.dollarAmount = 1.11m; d.active = true; @@ -170,6 +176,8 @@ namespace raven_integration //CREATE dynamic d = new JObject(); d.name = Util.Uniquify("ServerShouldDisAllowOwnerOnlyRightsUserToPutNonOwned TEST WIDGET"); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.created = DateTime.Now.ToString(); d.dollarAmount = 1.11m; d.active = true; @@ -204,6 +212,8 @@ namespace raven_integration //CREATE dynamic d = new JObject(); d.name = Util.Uniquify("ServerShouldAllowOwnerOnlyRightsUserToDelete TEST WIDGET"); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.created = DateTime.Now.ToString(); d.dollarAmount = 1.11m; d.active = true; @@ -233,6 +243,8 @@ namespace raven_integration //CREATE dynamic d = new JObject(); d.name = Util.Uniquify("ServerShouldDisAllowOwnerOnlyRightsUserToDeleteNonOwned TEST WIDGET"); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.created = DateTime.Now.ToString(); d.dollarAmount = 1.11m; d.active = true; diff --git a/Widget/WidgetValidationTests.cs b/Widget/WidgetValidationTests.cs index e3bd09b..7ab496c 100644 --- a/Widget/WidgetValidationTests.cs +++ b/Widget/WidgetValidationTests.cs @@ -45,6 +45,8 @@ namespace raven_integration //CREATE attempt with broken rules dynamic d = new JObject(); d.name = Util.Uniquify("BusinessRuleNameMustBeUnique TEST WIDGET"); + d.notes="blah"; + d.customFields = Util.GenerateCustomFieldsJsonString("Meh1"); d.created = DateTime.Now.ToString(); d.dollarAmount = 1.11m; d.active = true;