public void TestGetResource()
 {
     //Arrange
     ResourceAllocationModel model = new ResourceAllocationModel(new FakeUnitOfWork());
     //Act
     CS_Resource resource = model.GetResource(1);
     //Assert
     Assert.IsNotNull(resource);
 }
 /// <summary>
 /// Add resources to a selected resources list
 /// </summary>
 public void AddResourceToCallEntry()
 {
     try
     {
         using (_resourceAllocationModel = new ResourceAllocationModel())
         {
             _view.SelectedResources.Add(_resourceAllocationModel.GetResource(_view.SelectedResourceId));
         }
     }
     catch (Exception ex)
     {
         Logger.Write(string.Format("An Error has ocurred while trying to AddResourceToCallEntry.\n{0}\n{1}", ex.Message, ex.StackTrace));
         _view.DisplayMessage("An Internal Error has ocurred while trying to load the Information. Please try again.", false);
     }
 }