Example #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;
        }
 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;
 }
Example #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;
        }
Example #4
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;
        }
Example #5
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;
 }
Example #6
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;
        }
Example #7
0
 public BreweryController(IBreweryOrchestrator breweryOrchestrator)
 {
     _breweryOrchestrator = breweryOrchestrator;
 }
Example #8
0
 public BreweryController(IBreweryOrchestrator breweryOrchestrator)
 {
     _breweryOrchestrator = breweryOrchestrator;
 }