I'm subscribed to the IsExecuting of a command:
LoginCommand.IsExecuting.Subscribe(x => Log("Logging in"));
and it works fine when my Command is invoked by InvokeCommand but when I call it by:
LoginCommand.Execute();
The IsExecuting observable is not triggered.
This works:
Observable.Start(() => { }).InvokeCommand(LoginCommand);
Does someone know why the IsExecuting property doesn't change when calling the Execute method? I'm trying to unit test the command so I thought this would be the best way to execute it from tests.