public void TestListAllFilteredResourcesInfoByJob()
 {
     //Arrange
     ResourceAllocationModel model = new ResourceAllocationModel(new FakeUnitOfWork());
     //Act
     IList<CS_View_Resource_CallLogInfo> resultList = model.ListFilteredResourcesCallLogInfoByJob(5, true,true,null, null);
     //Assert
     Assert.AreEqual(2, resultList.Count);
 }
 /// <summary>
 /// List all Resources related to a specific job record
 /// </summary>
 public void ListAllFilteredResourcesCallLogInfoInfoByJob()
 {
     try
     {
         using (_resourceAllocationModel = new ResourceAllocationModel())
         {
             _view.ResourceGridDataSource = _resourceAllocationModel.ListFilteredResourcesCallLogInfoByJob(_view.JobId.Value, _view.SelectedCallType.ShowEmployee.Value, _view.SelectedCallType.ShowEquipment.Value, _view.ResourceFilterType, _view.ResourceFilterValue);
         }
     }
     catch (Exception ex)
     {
         Logger.Write(string.Format("An Error has ocurred while trying to Filter the resources.\n{0}\n{1}", ex.Message, ex.StackTrace));
         _view.DisplayMessage("An Internal Error has ocurred while trying to Filter the resources. Please try again.", false);
     }
 }