A deposition is the testimony of a witness taken in writing under oath or affirmation, before some designated or appointed person or officer, in answer to interrogatories, oral or written. (For the distinction between a deposition and an affidavit see § 92.22.)