コード例 #1
0
        public void SetUp()
        {
            _openTabsRepository = Substitute.For <IOpenTabsRepository>();
            _tabController      = new Web.Controllers.TabController(null, _openTabsRepository, null, null);
            _openTabsRepository.GetOpenTabs().Returns(GetOpenTabs());

            _openTabs = _tabController.Get().ToList();
        }
コード例 #2
0
 public TabController(ITabDetailsRepository tabDetailsRepository,
                      IOpenTabsRepository openTabsRepository,
                      ICommandSender commandSender,
                      IPlaceOrderCommandFactory placeOrderCommandFactory)
 {
     _tabDetailsRepository     = tabDetailsRepository;
     _openTabsRepository       = openTabsRepository;
     _commandSender            = commandSender;
     _placeOrderCommandFactory = placeOrderCommandFactory;
 }