public void TestListAllFilteredPriceTypesByName()
 {
     // Arrange
     JobModel model = new JobModel(new FakeUnitOfWork());
     // Act
     IList<CS_PriceType> result = model.ListAllFilteredPriceTypesByName("A");
     // Assert
     Assert.IsNotNull(result);
     Assert.AreEqual(2, result.Count);
 }
 /// <summary>
 /// List All Price Types filtered by Name
 /// </summary>
 public void ListPriceTypeByName()
 {
     try
     {
         using (_jobModel = new JobModel())
         {
             _view.PriceTypeList = _jobModel.ListAllFilteredPriceTypesByName(_view.PrefixText);
         }
     }
     catch (Exception ex)
     {
         Logger.Write(string.Format("An Error has ocurred while trying to load the Price Type Information!\n{0}\n{1}", ex.Message, ex.StackTrace));
     }
 }