diff --git a/EventLog/EventLog.cs b/EventLog/EventLog.cs
index 5915586..c25c311 100644
--- a/EventLog/EventLog.cs
+++ b/EventLog/EventLog.cs
@@ -116,6 +116,16 @@ namespace raven_integration
}
+ ///
+ ///
+ ///
+ [Fact]
+ public async void UserLogWorks()
+ {
+ //get admin log, sb lots of shit
+ ApiResponse a = await Util.GetAsync($"event-log/userlog?UserId=1&Offset=0&Limit=999", await Util.GetTokenAsync("BizAdminFull"));
+ ((JArray)a.ObjectResponse["data"]["events"]).Count.Should().BeGreaterThan(90);
+ }
@@ -202,10 +212,6 @@ namespace raven_integration
+ o["objectId"].Value() + o["name"].Value() + o["event"].Value()
);
}
-
-
-
-
}
//==================================================
diff --git a/WorkOrder/WorkOrderCrud.cs b/WorkOrder/WorkOrderCrud.cs
index 7ad7835..e26f4b5 100644
--- a/WorkOrder/WorkOrderCrud.cs
+++ b/WorkOrder/WorkOrderCrud.cs
@@ -497,7 +497,7 @@ namespace raven_integration
Util.ValidateDataReturnResponseOk(a);
a = await Util.DeleteAsync("workorder/" + WorkOrderId.ToString(), await Util.GetTokenAsync("manager", "l3tm3in"));
- Util.ValidateServerExceptionResponse(a);
+ Util.ValidateErrorCodeResponse(a, 2200, 400);
//now confirm the workorder is still there and with it's children intact
//RETRIEVE WORKORDER AND VALIDATE ENTIRE