This commit is contained in:
28
util.cs
28
util.cs
@@ -253,7 +253,7 @@ namespace raven_integration
|
||||
var ERR = a.ObjectResponse["error"];
|
||||
if (ERR != null)
|
||||
{
|
||||
ErrorMessage=a.ObjectResponse.ToString();
|
||||
ErrorMessage = a.ObjectResponse.ToString();
|
||||
// var ecode = ERR["code"];
|
||||
// if (ecode != null)
|
||||
// ErrorMessage += $"CODE: {ecode} ";
|
||||
@@ -427,15 +427,15 @@ namespace raven_integration
|
||||
dCustomField.c13 = c13;
|
||||
dCustomField.c14 = c14;
|
||||
dCustomField.c15 = c15;
|
||||
dCustomField.c16 = c16;
|
||||
dCustomField.c16 = c16;
|
||||
return dCustomField.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Generate a custom fields string that satisfies the rules in the sample test data
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string WidgetRequiredCustomFieldsJsonString()
|
||||
/// <summary>
|
||||
/// Generate a custom fields string that satisfies the rules in the sample test data
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string WidgetRequiredCustomFieldsJsonString()
|
||||
{/*CURRENT TEMPLATE DEFINITION FOR WIDGET CUSTOM FIELDS, FROM SEEDER.CS SERVER PROJECT
|
||||
{
|
||||
""template"": [
|
||||
@@ -489,5 +489,19 @@ namespace raven_integration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Generate a custom fields string that satisfies the rules in this project (formCustom)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string UserRequiredCustomFieldsJsonString()
|
||||
{
|
||||
//Note c1 is only required custom, c2 is defined but is not required so skipping it here
|
||||
dynamic dCustomField = new JObject();
|
||||
dCustomField.c1 = "UnitTestUtilSampleText";
|
||||
return dCustomField.ToString();
|
||||
}
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
|
||||
Reference in New Issue
Block a user