public void SetUp() { _openTabsRepository = Substitute.For <IOpenTabsRepository>(); _tabController = new Web.Controllers.TabController(null, _openTabsRepository, null, null); _openTabsRepository.GetOpenTabs().Returns(GetOpenTabs()); _openTabs = _tabController.Get().ToList(); }
public TabController(ITabDetailsRepository tabDetailsRepository, IOpenTabsRepository openTabsRepository, ICommandSender commandSender, IPlaceOrderCommandFactory placeOrderCommandFactory) { _tabDetailsRepository = tabDetailsRepository; _openTabsRepository = openTabsRepository; _commandSender = commandSender; _placeOrderCommandFactory = placeOrderCommandFactory; }