public void SetUp() { _urlHelper = Substitute.For <UrlHelper>(); var locatorConfig = new RoutesConfig(); _locator = new ItemUrlLocator(_urlHelper, locatorConfig); }
public ListController(IListRepository repository, IUrlLocator locator, IGetItemService getItemService, ICreateItemService createItemService, IUpdateItemService updateItemService) { _repository = repository; _urlLocator = locator; _getItemService = getItemService; _createItemService = createItemService; _updateItemService = updateItemService; }
public void SetUp() { _itemUrlLocator = Substitute.For <IUrlLocator>(); _repository = Substitute.For <ITodoListRepository>(); _controller = new TodoListController(_repository, _itemUrlLocator) { Request = new HttpRequestMessage(), Configuration = new HttpConfiguration(), Url = new UrlHelper() }; }
public void Init() { _repository = Substitute.For <IListRepository>(); _location = Substitute.For <IUrlLocator>(); _listController = new ListController(_repository, _location) { Request = new HttpRequestMessage(), Configuration = new HttpConfiguration() }; }
public TodoListController(ITodoListRepository repository, IUrlLocator urlLocator) { _repository = repository; _urlLocator = urlLocator; }
public ListController(IListRepository listRepository, IUrlLocator urlLocation) { _listRepository = listRepository; _urlLocation = urlLocation; }