Esempio n. 1
0
        public void Execute()
        {
            DAOFactory  daoFactory = DAOFactory.GetFactory(DAOFactory.Type.Postgres);
            IVehicleDAO vehicleDAO = daoFactory.GetVehicleDAO();

            _updated = vehicleDAO.UpdateVehicleStatus(_vehicleId, _status);
        }
 public void TestUpdateVehicleStatus_VehicleNotFoundException()
 {
     Assert.Throws <VehicleNotFoundException>(
         () => vehicleDAO.UpdateVehicleStatus(100000, false)
         );
 }