コード例 #1
0
ファイル: BeerController.cs プロジェクト: ahansb/BeerApp
 public BeerController(IBeersService beers, IIdentifierProvider identifier, ICountriesService countries, IBeerTypesService beerTypes, ICommentsService comments)
 {
     this.beers = beers;
     this.countries = countries;
     this.beerTypes = beerTypes;
     this.identifier = identifier;
     this.comments = comments;
 }
コード例 #2
0
 public BeerController(IBeersService beers, IIdentifierProvider identifier, ICountriesService countries, IBeerTypesService beerTypes, ICommentsService comments)
 {
     this.beers      = beers;
     this.countries  = countries;
     this.beerTypes  = beerTypes;
     this.identifier = identifier;
     this.comments   = comments;
 }
コード例 #3
0
        public BreweriesController(IMapper mapper,
                                   IBreweryService breweryService,
                                   IBeerTypesService beerTypesService)
        {
            Guard.WhenArgument(mapper, nameof(mapper)).IsNull().Throw();
            Guard.WhenArgument(breweryService, nameof(breweryService)).IsNull().Throw();
            Guard.WhenArgument(beerTypesService, nameof(beerTypesService)).IsNull().Throw();

            this.mapper           = mapper;
            this.breweryService   = breweryService;
            this.beerTypesService = beerTypesService;
        }
コード例 #4
0
ファイル: HomeController.cs プロジェクト: ahansb/BeerApp
 public HomeController(
     IBeerTypesService beerTypes)
 {
     this.beerTypes = beerTypes;
 }
コード例 #5
0
 public AllBeersController(IBeersService beers, IBeerTypesService beerTypes, ICountriesService countries)
 {
     this.beers     = beers;
     this.beerTypes = beerTypes;
     this.countries = countries;
 }
コード例 #6
0
 public AllRecipesController(IRecipesService recipes, IBeerTypesService beerTypes)
 {
     this.recipes   = recipes;
     this.beerTypes = beerTypes;
 }
コード例 #7
0
 public AllBeerTypesController(IBeerTypesService beerTypes)
 {
     this.beerTypes = beerTypes;
 }
コード例 #8
0
 public RecipeController(IRecipesService recipes, IIdentifierProvider identifier, IBeerTypesService beerTypes)
 {
     this.recipes    = recipes;
     this.beerTypes  = beerTypes;
     this.identifier = identifier;
 }
コード例 #9
0
 public AllBeerTypesController(IBeerTypesService beerTypes)
 {
     this.beerTypes = beerTypes;
 }
コード例 #10
0
ファイル: RecipeController.cs プロジェクト: ahansb/BeerApp
 public RecipeController(IRecipesService recipes, IIdentifierProvider identifier, IBeerTypesService beerTypes)
 {
     this.recipes = recipes;
     this.beerTypes = beerTypes;
     this.identifier = identifier;
 }
コード例 #11
0
ファイル: HomeController.cs プロジェクト: ahansb/BeerApp
 public HomeController(
     IBeerTypesService beerTypes)
 {
     this.beerTypes = beerTypes;
 }
コード例 #12
0
ファイル: AllBeersController.cs プロジェクト: ahansb/BeerApp
 public AllBeersController(IBeersService beers, IBeerTypesService beerTypes, ICountriesService countries)
 {
     this.beers = beers;
     this.beerTypes = beerTypes;
     this.countries = countries;
 }
コード例 #13
0
 public AllRecipesController(IRecipesService recipes, IBeerTypesService beerTypes)
 {
     this.recipes = recipes;
     this.beerTypes = beerTypes;
 }