public TabController(ITabDetailsRepository tabDetailsRepository, IOpenTabsRepository openTabsRepository, ICommandSender commandSender, IPlaceOrderCommandFactory placeOrderCommandFactory) { _tabDetailsRepository = tabDetailsRepository; _openTabsRepository = openTabsRepository; _commandSender = commandSender; _placeOrderCommandFactory = placeOrderCommandFactory; }
public void SetUp() { _tabDetailsRepository = Substitute.For <ITabDetailsRepository>(); _tabDetailsRepository.GetTabDetails(_id).Returns(new TabDetails { Id = _id }); _tabController = new Web.Controllers.TabController(_tabDetailsRepository, null, null, null); WhenGettingTabDetails(); }