Question: has been a pleasure working with you?
Answer: It is far more polite to say 'it HAS been a great pleasure working with you', which means that you have enjoyed working with this person, right up to the point where you no longer worked with that person - you are saying 'working with you is, and always has been, a great pleasure' and it leaves open the idea that, if ...