How to write Unit Test case for RelayCommand when there is a parameter in Execute method.Person is model class in MVVM application.
Something like this:
DeleteThanksCommand =
new RelayCommand<Person>(param => DeleteThanks(param), CanDeleteThanks());
When I tried to write unit Test case like:
ViewModel.DeleteThanksCommand.Execute(null);
Got error at runtime that cannot convert from string to Person.
Please suggest how to write unit test case for this Relay Command.
Thanks in advance for your help.