示例#1
0
 public HomeController(ITapOrchestrator tapOrchestrator, IKegOrchestrator kegOrchestrator, IBeerOrchestrator beerOrchestrator, IConnectionManager connectionManager)
 {
     if (tapOrchestrator == null) throw new ArgumentNullException("tapOrchestrator");
     if (kegOrchestrator == null) throw new ArgumentNullException("kegOrchestrator");
     if (beerOrchestrator == null) throw new ArgumentNullException("beerOrchestrator");
     if (connectionManager == null) throw new ArgumentNullException("connectionManager");
     _tapOrchestrator = tapOrchestrator;
     _kegOrchestrator = kegOrchestrator;
     _beerOrchestrator = beerOrchestrator;
     _connectionManager = connectionManager;
 }
示例#2
0
        public KegController(IKegOrchestrator kegOrchestrator, IBeerOrchestrator beerOrchestrator,
            IBreweryOrchestrator breweryOrchestrator)
        {
            if(null == kegOrchestrator) throw new ArgumentNullException("kegOrchestrator");    
            if(null == beerOrchestrator) throw new ArgumentNullException("beerOrchestrator");
            if(null == breweryOrchestrator) throw new ArgumentNullException("breweryOrchestrator");

            _kegOrchestrator = kegOrchestrator;
            _beerOrchestrator = beerOrchestrator;
            _breweryOrchestrator = breweryOrchestrator;
        }
示例#3
0
        public KegController(IKegOrchestrator kegOrchestrator, IBeerOrchestrator beerOrchestrator,
                             IBreweryOrchestrator breweryOrchestrator)
        {
            if (null == kegOrchestrator)
            {
                throw new ArgumentNullException("kegOrchestrator");
            }
            if (null == beerOrchestrator)
            {
                throw new ArgumentNullException("beerOrchestrator");
            }
            if (null == breweryOrchestrator)
            {
                throw new ArgumentNullException("breweryOrchestrator");
            }

            _kegOrchestrator     = kegOrchestrator;
            _beerOrchestrator    = beerOrchestrator;
            _breweryOrchestrator = breweryOrchestrator;
        }
示例#4
0
 public HomeController(ITapOrchestrator tapOrchestrator, IKegOrchestrator kegOrchestrator, IBeerOrchestrator beerOrchestrator, IConnectionManager connectionManager)
 {
     if (tapOrchestrator == null)
     {
         throw new ArgumentNullException("tapOrchestrator");
     }
     if (kegOrchestrator == null)
     {
         throw new ArgumentNullException("kegOrchestrator");
     }
     if (beerOrchestrator == null)
     {
         throw new ArgumentNullException("beerOrchestrator");
     }
     if (connectionManager == null)
     {
         throw new ArgumentNullException("connectionManager");
     }
     _tapOrchestrator   = tapOrchestrator;
     _kegOrchestrator   = kegOrchestrator;
     _beerOrchestrator  = beerOrchestrator;
     _connectionManager = connectionManager;
 }
示例#5
0
 public KegController(IKegOrchestrator kegOrchestrator)
 {
     _kegOrchestrator = kegOrchestrator;
 }
示例#6
0
 public KegController(IKegOrchestrator kegOrchestrator)
 {
     _kegOrchestrator = kegOrchestrator;
 }