public ListController(ITodoListsService listService)
        {
            if (listService == null)
                throw new ArgumentNullException(nameof(listService));

            _listService = listService;
        }
Example #2
0
        public ListController(ITodoListsService listService)
        {
            if (listService == null)
            {
                throw new ArgumentNullException(nameof(listService));
            }

            _listService = listService;
        }
        public ListsController(ITodoItemsService itemService, ITodoListsService listService)
        {
            if (itemService == null)
                throw new ArgumentNullException(nameof(itemService));

            if(listService == null)
                throw new ArgumentNullException(nameof(listService));

            _itemService = itemService;
            _listService = listService;
        }
Example #4
0
        public ListsController(ITodoItemsService itemService, ITodoListsService listService)
        {
            if (itemService == null)
            {
                throw new ArgumentNullException(nameof(itemService));
            }

            if (listService == null)
            {
                throw new ArgumentNullException(nameof(listService));
            }

            _itemService = itemService;
            _listService = listService;
        }