public void IsFieldLocked_FormObject_Null() { string fieldNumber = "123"; FormObject formObject = null; Assert.IsFalse(formObject.IsFieldLocked(fieldNumber)); }
public void SetUnlockedField_FormObject_Helper_Null_FieldNumber() { string fieldNumber = "123"; FormObject formObject = null; ScriptLinkHelpers.SetUnlockedField(formObject, fieldNumber); Assert.IsFalse(formObject.IsFieldLocked(fieldNumber)); }
public void SetUnlockedField_FormObject_Null_FieldNumber() { string fieldNumber = "123"; FormObject formObject = null; formObject.SetUnlockedField(fieldNumber); Assert.IsFalse(formObject.IsFieldLocked(fieldNumber)); }
public void IsFieldLocked_FormObject_IsNotPresent() { string fieldNumber = "123"; RowObject rowObject = new RowObject(); rowObject.AddFieldObject(new FieldObject(fieldNumber, "", false, false, false)); FormObject formObject = new FormObject("1"); formObject.AddRowObject(rowObject); Assert.IsTrue(formObject.IsFieldLocked("234")); }
public void SetUnlockedField_FormObject_Helper_FieldNumber_IsNotPresent() { string fieldNumber = "123"; FieldObject fieldObject = new FieldObject(fieldNumber); RowObject rowObject = new RowObject(); rowObject.AddFieldObject(fieldObject); FormObject formObject = new FormObject("1"); formObject.AddRowObject(rowObject); ScriptLinkHelpers.SetUnlockedField(formObject, fieldNumber); Assert.IsFalse(formObject.IsFieldLocked("234")); }
public void SetUnlockedField_FormObject_FieldNumber() { string fieldNumber = "123"; FieldObject fieldObject = new FieldObject(fieldNumber); RowObject rowObject = new RowObject(); rowObject.AddFieldObject(fieldObject); FormObject formObject = new FormObject("1"); formObject.AddRowObject(rowObject); formObject.SetUnlockedField(fieldNumber); Assert.IsFalse(formObject.IsFieldLocked(fieldNumber)); }
public void SetLockedField_FormObject_Helper_FieldNumber() { string fieldNumber = "123"; FieldObject fieldObject = new FieldObject(fieldNumber); RowObject rowObject = new RowObject(); rowObject.AddFieldObject(fieldObject); FormObject formObject = new FormObject("1"); formObject.AddRowObject(rowObject); ScriptLinkHelpers.SetLockedField(formObject, fieldNumber); Assert.IsTrue(formObject.IsFieldLocked(fieldNumber)); }
public void SetLockedFields_FormObject_Helper_ListFieldNumbers_Null() { string fieldNumber = "123"; FieldObject fieldObject = new FieldObject(fieldNumber); List <string> fieldNumbers = null; RowObject rowObject = new RowObject(); rowObject.AddFieldObject(fieldObject); FormObject formObject = new FormObject("1"); formObject.AddRowObject(rowObject); ScriptLinkHelpers.SetLockedFields(formObject, fieldNumbers); Assert.IsFalse(formObject.IsFieldLocked(fieldNumber)); }
public void SetLockedFields_FormObject_Null_ListFieldNumbers() { string fieldNumber = "123"; FieldObject fieldObject = new FieldObject(fieldNumber); List <string> fieldNumbers = new List <string>() { fieldNumber }; RowObject rowObject = new RowObject(); rowObject.AddFieldObject(fieldObject); FormObject formObject = null; formObject.SetLockedFields(fieldNumbers); Assert.IsFalse(formObject.IsFieldLocked(fieldNumber)); }
public void SetUnlockedFields_FormObject_Helper_ListFieldNumbers() { string fieldNumber = "123"; FieldObject fieldObject = new FieldObject(fieldNumber); List <string> fieldNumbers = new List <string>() { fieldNumber }; RowObject rowObject = new RowObject(); rowObject.AddFieldObject(fieldObject); FormObject formObject = new FormObject("1"); formObject.AddRowObject(rowObject); OptionObjectHelpers.SetUnlockedFields(formObject, fieldNumbers); Assert.IsFalse(formObject.IsFieldLocked(fieldNumber)); }
public void FormObject_IsFieldLocked_NotPresent_Error() { FieldObject fieldObject = new FieldObject { Enabled = "0", FieldNumber = "123", FieldValue = "TEST", Lock = "1", Required = "0" }; RowObject rowObject = new RowObject(); rowObject.Fields.Add(fieldObject); FormObject formObject = new FormObject { CurrentRow = rowObject }; Assert.IsFalse(formObject.IsFieldLocked("124")); }