コード例 #1
0
 public SelectBaseLayout(ISheerResponse sheerResponse, ICommandContextChecker contextChecker,
     IDialogLocator dialogLocator, IDialogResultProcessor dialogResultProcessor)
 {
     _sheerResponse = sheerResponse;
     _contextChecker = contextChecker;
     _dialogLocator = dialogLocator;
     _dialogResultProcessor = dialogResultProcessor;
 }
コード例 #2
0
 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
ファイル: CreateTodoCommand.cs プロジェクト: virajs/teclyn
 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
ファイル: PropertyCommand.cs プロジェクト: virajs/teclyn
 public abstract bool CheckContext(ITeclynContext context, ICommandContextChecker _);
コード例 #8
0
 public Task <bool> CheckContext(UpdatePostTitle command, ITeclynContext context, ICommandContextChecker _)
 {
     throw new System.NotImplementedException();
 }
コード例 #9
0
ファイル: PropertyCommandTests.cs プロジェクト: virajs/teclyn
 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;
 }