public void TestListAllJobStatusByDescription() { // Arrange JobModel model = new JobModel(new FakeUnitOfWork()); // Act IList<CS_JobStatus> result = model.ListJobStatusByDescription("status2"); // Assert Assert.IsNotNull(result); Assert.AreEqual(1, result.Count); }
public void ListJobStatusByDescription() { try { using (_jobModel = new JobModel()) { _view.JobStatusList = _jobModel.ListJobStatusByDescription(_view.PrefixText); } } catch (Exception ex) { Logger.Write(string.Format("An Error has ocurred while trying to load the Job Status Information!\n{0}\n{1}", ex.Message, ex.StackTrace)); } }