Not sure how the lock was removed. or taken apart as it is. Most times it is an actuator that sits in the door that connects to a rod that is then moved up or down with lock and unlock and or front to back. There are some that are built into the latch it self.
I am going to guess that it was removed because they thought it was bad. Here is why. A Audi in most causes with a Fob OEM will not lock the drivers door with out the fob near. Say you drop your wife off and she has fob with her. When you drive away and park the car even if one without key or with key all doors will lock but not the Drivers door It will lock and then unlock as a safety Not sure I like that way of working.
So yeah if they took it apart looking for a fault it would be better to just get one from a Yard or dealer. However the yard would be best bet because I am sure from the dealer they are not going to be cheap.
I am going to guess that it was removed because they thought it was bad. Here is why. A Audi in most causes with a Fob OEM will not lock the drivers door with out the fob near. Say you drop your wife off and she has fob with her. When you drive away and park the car even if one without key or with key all doors will lock but not the Drivers door It will lock and then unlock as a safety Not sure I like that way of working.
So yeah if they took it apart looking for a fault it would be better to just get one from a Yard or dealer. However the yard would be best bet because I am sure from the dealer they are not going to be cheap.