Esempio n. 1
0
 public TodoController(ITodoRepository todorepository, IDBTodoContext context)
 {
     if (todorepository == null)
     {
         throw new ArgumentNullException(nameof(todorepository));
     }
     _todoRepository = todorepository;
 }
Esempio n. 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public TodoRepository(IDBTodoContext context, IMappingTodo mappingTodo)
        {
            if (mappingTodo == null)
            {
                throw new ArgumentNullException(nameof(mappingTodo));
            }

            _dbTodoContext = context;
            _mappingTodo   = mappingTodo;
        }