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);
 }
Пример #3
0
 public SelectBaseLayout(ISheerResponse sheerResponse, ICommandContextChecker contextChecker,
                         IDialogLocator dialogLocator, IDialogResultProcessor dialogResultProcessor)
 {
     _sheerResponse         = sheerResponse;
     _contextChecker        = contextChecker;
     _dialogLocator         = dialogLocator;
     _dialogResultProcessor = dialogResultProcessor;
 }
Пример #4
0
        public SelectBaseLayout()
        {
            _sheerResponse = new SheerResponseWrapper();
            var runner = new PipelineRunner();

            _contextChecker        = new SelectBaseLayoutContextChecker(new PageModeAccess(), runner);
            _dialogLocator         = new SelectBaseLayoutDialogLocator(runner);
            _dialogResultProcessor = new SelectBaseLayoutDialogResultProcessor(runner);
        }
Пример #5
0
 public bool CheckContext(ITeclynContext context, ICommandContextChecker _)
 {
     return(true);
 }
Пример #6
0
 public override bool CheckContext(ITeclynContext context, ICommandContextChecker _)
 {
     return(_.Check(this.NewValue != null, "error"));
 }
Пример #7
0
 public abstract bool CheckContext(ITeclynContext context, ICommandContextChecker _);
Пример #8
0
 public Task <bool> CheckContext(UpdatePostTitle command, ITeclynContext context, ICommandContextChecker _)
 {
     throw new System.NotImplementedException();
 }
Пример #9
0
 public override bool CheckContext(ITeclynContext context, ICommandContextChecker _)
 {
     return(_.Check(contextOk, "You are not allowed to execute this command."));
 }
Пример #10
0
 public Task <bool> CheckContext(RegisterUserCommand command, ITeclynContext context, ICommandContextChecker _)
 {
     return(Task.FromResult(true));
 }
Пример #11
0
 public CanExecute(ICommandContextChecker contextChecker)
 {
     Assert.ArgumentNotNull(contextChecker, "commandContextChecker");
     _contextChecker = contextChecker;
 }