He was cast in the television series Buffy the Vampire Slayer , after being seen by a producer when Boreanaz was walking his dog . He was cast in the television series Buffy the Vampire Slayer , after being suggested for the role to Marti Noxon by one of Boreanaz 's neighbors , after walking his dog past their house .