Exemple #1
0
 public Controller(IExitCommand exitCommand,
                   IHelpCommand helpCommand,
                   ICd cdCommand,
                   IDirCommand dirCommand,
                   IInitCommand initComman,
                   IStatusCommand statusCommand,
                   IListCommand listCommand,
                   IRegisterCommand registerCommand,
                   ILoginCommand logInCommand,
                   IAddCommand addCommand,
                   IRemoveCommand removeCommand,
                   ITestHttp testHttp, ICommitCommand commitCommand)
 {
     this.exitCommand     = exitCommand;
     this.helpCommand     = helpCommand;
     this.cdCommand       = cdCommand;
     this.dirCommand      = dirCommand;
     this.initComman      = initComman;
     this.statusCommand   = statusCommand;
     this.listCommand     = listCommand;
     this.registerCommand = registerCommand;
     this.loginCommand    = logInCommand;
     this.addCommand      = addCommand;
     this.removeCommand   = removeCommand;
     this.testHttp        = testHttp;
     this.commitCommand   = commitCommand;
 }
        public ListCommandHandler(IListCommand args)
        {
            FileSystem = args.FileSystem ?? Program.FileSystem;
            Options    = args.Options;

            Assert.ArgumentNotNull(FileSystem);
            Assert.ArgumentNotNull(Options);
        }
Exemple #3
0
 public ListsController(IListQuery listQuery, IListCommand listCommand, IUrlHelper urlHelper)
 {
     _listQuery   = listQuery;
     _listCommand = listCommand;
     _urlHelper   = urlHelper;
 }