/// <summary> /// ValidateGetCustomField method - takes CustomFieldDto objects /// </summary> /// <param name="expected"></param> /// <param name="actual"></param> public static void ValidateGetCustomField(CustomFieldDto expected, CustomFieldDto actual) { if (expected == null) { return; } Validate(expected.Label, actual.Label, TestAttribute.Label); Validate(expected.Value, actual.Value, TestAttribute.Value); if (expected.Category != null) { Validate(expected.Category, actual.Category, TestAttribute.Category); } if (expected.ValueType != null) { Validate(expected.ValueType, actual.ValueType, TestAttribute.ValueType); } ValidateCount(expected.MinLength, actual.MinLength, TestAttribute.MinLength); ValidateCount(expected.MaxLength, actual.MaxLength, TestAttribute.MaxLength); Console.WriteLine(); }
/// <summary> /// ValidateCustomFields method - takes CustomFieldDto objects /// </summary> /// <param name="expected"></param> /// <param name="actual"></param> public static void ValidateCustomField(CustomFieldDto expected, CustomFieldDto actual) { if (expected == null) { return; } Validate(expected.Label, actual.Label, TestAttribute.Label); Validate(expected.Value, actual.Value, TestAttribute.Value); Console.WriteLine(); }