public SelectBaseLayout(ISheerResponse sheerResponse, ICommandContextChecker contextChecker, IDialogLocator dialogLocator, IDialogResultProcessor dialogResultProcessor) { _sheerResponse = sheerResponse; _contextChecker = contextChecker; _dialogLocator = dialogLocator; _dialogResultProcessor = dialogResultProcessor; }
public SelectBaseLayout() { _sheerResponse = new SheerResponseWrapper(); var runner = new PipelineRunner(); _contextChecker = new SelectBaseLayoutContextChecker(new PageModeAccess(), runner); _dialogLocator = new SelectBaseLayoutDialogLocator(runner); _dialogResultProcessor = new SelectBaseLayoutDialogResultProcessor(runner); }
public bool CheckContext(ITeclynContext context, ICommandContextChecker _) { return(true); }
public override bool CheckContext(ITeclynContext context, ICommandContextChecker _) { return(_.Check(this.NewValue != null, "error")); }
public abstract bool CheckContext(ITeclynContext context, ICommandContextChecker _);
public Task <bool> CheckContext(UpdatePostTitle command, ITeclynContext context, ICommandContextChecker _) { throw new System.NotImplementedException(); }
public override bool CheckContext(ITeclynContext context, ICommandContextChecker _) { return(_.Check(contextOk, "You are not allowed to execute this command.")); }
public Task <bool> CheckContext(RegisterUserCommand command, ITeclynContext context, ICommandContextChecker _) { return(Task.FromResult(true)); }
public CanExecute(ICommandContextChecker contextChecker) { Assert.ArgumentNotNull(contextChecker, "commandContextChecker"); _contextChecker = contextChecker; }