Exemplo n.º 1
0
        public ListController(ITodoListsService listService)
        {
            if (listService == null)
                throw new ArgumentNullException(nameof(listService));

            _listService = listService;
        }
Exemplo n.º 2
0
        public ListController(ITodoListsService listService)
        {
            if (listService == null)
            {
                throw new ArgumentNullException(nameof(listService));
            }

            _listService = listService;
        }
Exemplo n.º 3
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;
        }
Exemplo n.º 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;
        }