Esempio n. 1
0
 public CityModelDC GetCityById(int id)
 {
     if (id < 0)
     {
         throw new ArgumentException(Messages.CityExceptionGetById);
     }
     return(_cityDAL.GetCityById(id));
 }
 public void GetCityById_InvalidArgument()
 {
     _cityDal.GetCities();
     _cityDal.GetCityById(-50);
 }