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);
 }
Ejemplo n.º 3
0
 public SelectBaseLayout(ISheerResponse sheerResponse, ICommandContextChecker contextChecker,
                         IDialogLocator dialogLocator, IDialogResultProcessor dialogResultProcessor)
 {
     _sheerResponse         = sheerResponse;
     _contextChecker        = contextChecker;
     _dialogLocator         = dialogLocator;
     _dialogResultProcessor = dialogResultProcessor;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 5
0
 public bool CheckContext(ITeclynContext context, ICommandContextChecker _)
 {
     return(true);
 }
Ejemplo n.º 6
0
 public override bool CheckContext(ITeclynContext context, ICommandContextChecker _)
 {
     return(_.Check(this.NewValue != null, "error"));
 }
Ejemplo n.º 7
0
 public abstract bool CheckContext(ITeclynContext context, ICommandContextChecker _);
Ejemplo n.º 8
0
 public Task <bool> CheckContext(UpdatePostTitle command, ITeclynContext context, ICommandContextChecker _)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 9
0
 public override bool CheckContext(ITeclynContext context, ICommandContextChecker _)
 {
     return(_.Check(contextOk, "You are not allowed to execute this command."));
 }
Ejemplo n.º 10
0
 public Task <bool> CheckContext(RegisterUserCommand command, ITeclynContext context, ICommandContextChecker _)
 {
     return(Task.FromResult(true));
 }
Ejemplo n.º 11
0
 public CanExecute(ICommandContextChecker contextChecker)
 {
     Assert.ArgumentNotNull(contextChecker, "commandContextChecker");
     _contextChecker = contextChecker;
 }