Exemplo n.º 1
0
        public BreweryController(IBreweryOrchestrator breweryOrchestrator, IBeerOrchestrator beerOrchestrator)
        {
            if(breweryOrchestrator == null) throw new ArgumentNullException("breweryOrchestrator");
            if(beerOrchestrator == null) throw new ArgumentNullException("beerOrchestrator");

            _breweryOrchestrator = breweryOrchestrator;
            _beerOrchestrator = beerOrchestrator;
        }
Exemplo n.º 2
0
        public BeerOnTapController(IBeerOrchestrator beerOrchestrator)
        {
            if (beerOrchestrator == null)
            {
                throw new ArgumentNullException("beerOrchestrator");
            }

            _beerOrchestrator = beerOrchestrator;
        }
Exemplo n.º 3
0
 public BeerController(IBeerOrchestrator beerOrchestrator, IBreweryOrchestrator breweryOrchestrator, IStyleOrchestrator styleOrchestrator)
 {
     if (beerOrchestrator == null) throw new ArgumentNullException("beerOrchestrator");
     if (null == breweryOrchestrator) throw new ArgumentNullException("breweryOrchestrator");
     if(null == styleOrchestrator) throw new ArgumentNullException("styleOrchestrator");
     _beerOrchestrator = beerOrchestrator;
     _breweryOrchestrator = breweryOrchestrator;
     _styleOrchestrator = styleOrchestrator;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
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;
        }
Exemplo n.º 6
0
        public BreweryController(IBreweryOrchestrator breweryOrchestrator, IBeerOrchestrator beerOrchestrator)
        {
            if (breweryOrchestrator == null)
            {
                throw new ArgumentNullException("breweryOrchestrator");
            }
            if (beerOrchestrator == null)
            {
                throw new ArgumentNullException("beerOrchestrator");
            }

            _breweryOrchestrator = breweryOrchestrator;
            _beerOrchestrator    = beerOrchestrator;
        }
Exemplo n.º 7
0
 public BeerController(IBeerOrchestrator beerOrchestrator, IBreweryOrchestrator breweryOrchestrator, IStyleOrchestrator styleOrchestrator)
 {
     if (beerOrchestrator == null)
     {
         throw new ArgumentNullException("beerOrchestrator");
     }
     if (null == breweryOrchestrator)
     {
         throw new ArgumentNullException("breweryOrchestrator");
     }
     if (null == styleOrchestrator)
     {
         throw new ArgumentNullException("styleOrchestrator");
     }
     _beerOrchestrator    = beerOrchestrator;
     _breweryOrchestrator = breweryOrchestrator;
     _styleOrchestrator   = styleOrchestrator;
 }
Exemplo n.º 8
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;
        }
Exemplo n.º 9
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;
 }
Exemplo n.º 10
0
        public BeerOnTapController(IBeerOrchestrator beerOrchestrator)
        {
            if (beerOrchestrator == null) throw new ArgumentNullException("beerOrchestrator");

            _beerOrchestrator = beerOrchestrator;
        }