private IUserOrder GetAddCommand(int numberOfEntryValues, AgendaController agendaClient) { switch (numberOfEntryValues) { case ONE_ENTRY: return(new AdderOneEntry(agendaClient)); case TWO_ENTRIES: return(new AdderTwoEntries(agendaClient)); case THREE_ENTRIES: return(new AdderThreeEntries(agendaClient)); default: return(null); } }
public InterpreterOfAdd(AgendaController agendaController) { this.agendaController = agendaController; }
public AdderOneEntry(AgendaController agendaController) { this.agendaController = agendaController; }
public AdderTwoEntries(AgendaController agendaController) { this.agendaController = agendaController; }
public UserInterpreterDecorator(IUserInterpreter decoratedInterpreter) { this.decoratedInterpreter = decoratedInterpreter; agendaController = GetAgendaController(); AddUserValidCommand(); }
public InterpreterOfSearch(AgendaController agendaController) { this.agendaController = agendaController; }
public InterpreterOfRemove(AgendaController agendaController) { this.agendaController = agendaController; }