private static GridRowViewModel AddtriggerForMessage(EnumerableFieldViewModel triggersSubGrid, string message) { triggersSubGrid.AddRow(); var newRow = triggersSubGrid.GridRecords.First(); PopulateRowForMessage(newRow, message); return(newRow); }
private static void AddtriggerForMessage(EnumerableFieldViewModel triggersSubGrid, string message) { triggersSubGrid.AddRow(); var entryForm = triggersSubGrid.GetRecordForm().ChildForms.First() as ObjectEntryViewModel; entryForm.LoadFormSections(); PopulateRowForMessage(entryForm, message); Assert.IsTrue(entryForm.Validate()); entryForm.SaveButtonViewModel.Invoke(); }