public void TestListAllJobActionByName() { JobModel jobModel = new JobModel(new FakeUnitOfWork()); IList<CS_JobAction> result = jobModel.ListAllJobActionByName("Tran"); Assert.IsNotNull(result); Assert.AreEqual(1, result.Count); }
/// <summary> /// List all job action filtered by name /// </summary> public void ListJobActionByName() { try { using (_jobModel = new JobModel()) { _view.JobActionList = _jobModel.ListAllJobActionByName(_view.PrefixText); } } catch (Exception ex) { Logger.Write(string.Format("An Error has ocurred while trying to load the Job Action information!\n{0}\n{1}", ex.Message, ex.StackTrace)); } }