Пример #1
0
        public StyleController(IStyleOrchestrator styleOrchestrator)
        {
            if(null == styleOrchestrator)
                throw new ArgumentNullException("styleOrchestrator");

            _styleOrchestrator = styleOrchestrator;
        }
Пример #2
0
        public StyleController(IStyleOrchestrator styleOrchestrator)
        {
            if (null == styleOrchestrator)
            {
                throw new ArgumentNullException("styleOrchestrator");
            }

            _styleOrchestrator = styleOrchestrator;
        }
Пример #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;
 }
Пример #4
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;
 }