WPF MVVM - Unit Testing a command - Private vs Public methods?

michael picture michael · Jul 28, 2011 · Viewed 7.9k times · Source

Basically, If I use MVVM and expose public ICommands, should my delegates be public or private?

Answer

Dan J picture Dan J · Jul 28, 2011

I would make them private - they aren't part of your class's public interface, that's what the public ICommand properties are for.