public void ConvertItemBOPassTest()
 {
     foreach (var BO in conditionBOs)
     {
         var condition = _conv.ConvertBO(BO);
         Assert.NotNull(condition);
         Assert.Equal(BO.DangerousGoodsNumber, condition.DangerousGoodsNumber);
         Assert.Equal(BO.DangerousGoodsNumber, condition.DangerousGoodsNumber);
         Assert.Equal(BO.Id, condition.Id);
     }
 }
 public FreightConditionBO Create(FreightConditionBO condition)
 {
     if (condition == null)
     {
         return(null);
     }
     using (var uow = _facade.UnitOfWork)
     {
         var createdCondition = uow.FreightConditionRepository.Create(_conv.ConvertBO(condition));
         uow.Complete();
         return(_conv.Convert(createdCondition));
     }
 }