Try to ignore the whining. If your dog is just testing you, he'll probably stop whining soon. Yelling at him or pounding on the crate will only make things worse. If the whining continues after you've ignored him for several minutes, use the phrase he associates with going outside to eliminate.