/// <summary> /// Initializes a new instance of the <see cref="TODOController"/> class. /// </summary> /// <param name="repository">The repository.</param> public TODOController(ITODORepository repository) { this.repository = repository; }
public TODOService(ITODORepository toDoRepository) { _toDoRepository = toDoRepository; }
/// <summary> /// Initializes a new instance of the <see cref="TODOController" /> class. /// </summary> public TODOController() { this.repository = new TODORepository(); }