Exemplo n.º 1
0
 public SubcategoryControllerTests()
 {
     this.subcategoriesRepository = new SampleSubcategoriesRepository();
     this.producerRepository      = new SampleProducerRepository();
     this.subcategoryController   = new SubcategoryController(subcategoriesRepository, producerRepository);
 }
 public SubcategoryController(ISubcategoriesRepository subcategoriesRepository, IProducerRepository producerRepository)
 {
     this.subcategoriesRepository = subcategoriesRepository;
     this.producerRepository      = producerRepository;
 }
Exemplo n.º 3
0
 public ItemsController(IItemsRepository itemsRepository, ISubcategoriesRepository subcategoriesRepository)
 {
     _itemsRepository         = itemsRepository;
     _subcategoriesRepository = subcategoriesRepository;
 }
 public SubcategoriesService(ISubcategoriesRepository subcategoriesRepository)
 {
     _subcategoriesRepository = subcategoriesRepository;
 }
Exemplo n.º 5
0
 public SubcategoriesController(ISubcategoriesRepository subcategoriesRepository, ICategoriesRepository categoriesRepository)
 {
     _categoriesRepository    = categoriesRepository;
     _subcategoriesRepository = subcategoriesRepository;
 }