コード例 #1
0
 public SubcategoryControllerTests()
 {
     this.subcategoriesRepository = new SampleSubcategoriesRepository();
     this.producerRepository      = new SampleProducerRepository();
     this.subcategoryController   = new SubcategoryController(subcategoriesRepository, producerRepository);
 }
コード例 #2
0
 public SubcategoryController(ISubcategoriesRepository subcategoriesRepository, IProducerRepository producerRepository)
 {
     this.subcategoriesRepository = subcategoriesRepository;
     this.producerRepository      = producerRepository;
 }
コード例 #3
0
 public ItemsController(IItemsRepository itemsRepository, ISubcategoriesRepository subcategoriesRepository)
 {
     _itemsRepository         = itemsRepository;
     _subcategoriesRepository = subcategoriesRepository;
 }
コード例 #4
0
 public SubcategoriesService(ISubcategoriesRepository subcategoriesRepository)
 {
     _subcategoriesRepository = subcategoriesRepository;
 }
コード例 #5
0
 public SubcategoriesController(ISubcategoriesRepository subcategoriesRepository, ICategoriesRepository categoriesRepository)
 {
     _categoriesRepository    = categoriesRepository;
     _subcategoriesRepository = subcategoriesRepository;
 }