Esempio n. 1
0
 public TabController(ITabDetailsRepository tabDetailsRepository,
                      IOpenTabsRepository openTabsRepository,
                      ICommandSender commandSender,
                      IPlaceOrderCommandFactory placeOrderCommandFactory)
 {
     _tabDetailsRepository     = tabDetailsRepository;
     _openTabsRepository       = openTabsRepository;
     _commandSender            = commandSender;
     _placeOrderCommandFactory = placeOrderCommandFactory;
 }
Esempio n. 2
0
        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();
        }