private static void SendRequestAndVerifyData(Dictionary <string, object> request, OtherOperations op) { var handler = new DefaultManager(); var response = SendRequestComputeFieldValue(request); var targetValue = ComputeOtherMath[op](FieldValuePair); PrAssert.That(Math.Round(double.Parse(response.Result.Value), 0), PrIs.EqualTo(Math.Round(targetValue, 0)), "Compute field value is incorrectly."); }
private static void SendRequestAndVerifyData(Dictionary <string, object> request, OtherOperations op, string targetField, double targetAffectedValue) { var handler = new DefaultManager(); var response = SendRequestComputeAffectedField(request); var targetValue = ComputeOtherMath[op](targetAffectedValue); PrAssert.That(response.Result.AffectedFields.Where(x => x.Field.Contains(targetField)).Select(i => Convert.ToInt32(float.Parse(i.Value))), PrIs.All.EqualTo(Convert.ToInt32(targetValue)), "Compute affected field value is incorrectly."); }