This commit is contained in:
@@ -103,6 +103,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.startDate = new DateTime(1968, 3, 12, 10, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.endDate = new DateTime(1968, 3, 12, 11, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -214,6 +215,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.startDate = new DateTime(1970, 3, 12, 10, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.endDate = new DateTime(1970, 3, 12, 11, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -325,6 +327,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.startDate = new DateTime(1970, 3, 12, 10, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.endDate = new DateTime(1970, 3, 12, 11, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -435,6 +438,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.startDate = new DateTime(1970, 3, 12, 10, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.endDate = new DateTime(1970, 3, 12, 11, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -539,6 +543,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.startDate = new DateTime(1970, 3, 12, 10, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.endDate = new DateTime(1970, 3, 12, 11, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -643,6 +648,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.startDate = new DateTime(1970, 3, 12, 10, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.endDate = new DateTime(1970, 3, 12, 11, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -726,7 +732,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Fact]
|
||||
@@ -747,6 +753,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.startDate = new DateTime(2019, 3, 12, 10, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.endDate = new DateTime(2019, 3, 12, 11, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -784,7 +791,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
FilterItem.value = new DateTime(2019, 3, 12, 10, 0, 0).ToOffsetAdjustedUniversalTime();
|
||||
dfilter.Add(FilterItem);
|
||||
|
||||
|
||||
|
||||
dynamic FilterItem2 = new JObject();
|
||||
FilterItem2.fld = "widgetstartdate";
|
||||
FilterItem2.op = Util.OpLessThanOrEqualTo;
|
||||
@@ -878,7 +885,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "aardvark";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -1004,7 +1011,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "O'Flaherty's pub";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -1127,7 +1134,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "Bill & Ted's excellent adventure";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -1260,7 +1267,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = InclusiveTestString;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -1384,7 +1391,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "Alabama";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -1508,7 +1515,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "Bjorn";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -1632,7 +1639,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "California";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -1756,7 +1763,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "Donut";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -1879,7 +1886,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "Egg Salad Sandwich";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -2002,7 +2009,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "Gray poupon";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -2125,7 +2132,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "Fast Freddy Freak";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -2248,7 +2255,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "Granular";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -2372,7 +2379,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "Bo Horvat";
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -2509,7 +2516,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.count = 5;
|
||||
w.notes = "blah";
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
@@ -2613,7 +2620,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.count = 55;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -2716,7 +2723,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.count = 555;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -2821,7 +2828,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.count = -5555;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -2925,7 +2932,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.count = -444;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -3030,7 +3037,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.count = 222;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -3146,7 +3153,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -3280,7 +3287,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -3420,7 +3427,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.dollarAmount = 5.55;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -3522,7 +3529,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.dollarAmount = 55.55;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -3625,7 +3632,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.dollarAmount = 555.55;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -3730,7 +3737,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.dollarAmount = -5555.55;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -3834,7 +3841,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.dollarAmount = -444.44;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -3939,7 +3946,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.active = true;
|
||||
w.roles = 0;
|
||||
w.usertype = 1;
|
||||
w.dollarAmount = 222.22;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
@@ -4049,6 +4056,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.usertype = 1;
|
||||
//Tags
|
||||
dynamic InclusiveTagsArray = new JArray();
|
||||
InclusiveTagsArray.Add("red-tag-test");
|
||||
@@ -4209,6 +4217,7 @@ same as the server does but in a central location here for all tests to use.
|
||||
w.name = Util.Uniquify(WidgetRunNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.usertype = 1;
|
||||
//Tags
|
||||
dynamic InclusiveTagsArray = new JArray();
|
||||
InclusiveTagsArray.Add("red-tag-test");
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace raven_integration
|
||||
w.name = Util.Uniquify(WidgetNameStart);
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.usertype = 1;
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
ThirdInOrderWidgetId = a.ObjectResponse["data"]["id"].Value<long>();
|
||||
@@ -122,6 +123,7 @@ namespace raven_integration
|
||||
w.notes = "blah";
|
||||
w.startDate = DateTime.Now;
|
||||
w.endDate = DateTime.Now.AddHours(1);
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -227,6 +229,7 @@ namespace raven_integration
|
||||
w.customFields = Util.WidgetRequiredCustomFieldsJsonString();
|
||||
w.notes = "blah";
|
||||
w.count = 999;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
@@ -351,6 +354,7 @@ namespace raven_integration
|
||||
w.notes = "blah";
|
||||
w.dollaramount = 2.22;
|
||||
w.count = 1;
|
||||
w.usertype = 1;
|
||||
|
||||
ApiResponse a = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w.ToString());
|
||||
Util.ValidateDataReturnResponseOk(a);
|
||||
|
||||
Reference in New Issue
Block a user