As against a principal, both principal and agent are deemed to have notice of whatever either has notice and ought, in good faith and the exercise of ordinary care and diligence, to communicate to the other.