public DialogButtonViewModel(AsyncCommandFactory commandFactory) { OkCommand = commandFactory.CreateSyncCommand(OkPressed); }
private void GivenEndlessCommand() { var commandFactory = new AsyncCommandFactory(new FatalHandlerMock()); _command = commandFactory.CreateSyncCommand(EndlessAction); }
public DialogCancelButtonViewModel(AsyncCommandFactory commandFactory) : base(commandFactory) { CancelCommand = commandFactory.CreateSyncCommand(CancelPressed); }