MockCommand<TParam, TResult> constructor

MockCommand<TParam, TResult>({Observable<bool> canExecute })

Factory constructor that can take an optional observable to control if the command can be executet

Implementation

factory MockCommand({Observable<bool> canExecute} )
{

  return new MockCommand._(new BehaviorSubject<CommandResult<TResult>>(seedValue: new CommandResult<TResult>(null, null, false)), canExecute);
}