public TasqueObjectFactory(ITaskListRepository taskListRepo, ITaskRepository taskRepo, INoteRepository noteRepo = null) { if (taskListRepo == null) throw new ArgumentNullException ("taskListRepo"); if (taskRepo == null) throw new ArgumentNullException ("taskRepo"); this.taskListRepo = taskListRepo; this.taskRepo = taskRepo; this.noteRepo = noteRepo; }