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; }
public ItemsController(IItemsRepository itemsRepository, ISubcategoriesRepository subcategoriesRepository) { _itemsRepository = itemsRepository; _subcategoriesRepository = subcategoriesRepository; }
public SubcategoriesService(ISubcategoriesRepository subcategoriesRepository) { _subcategoriesRepository = subcategoriesRepository; }
public SubcategoriesController(ISubcategoriesRepository subcategoriesRepository, ICategoriesRepository categoriesRepository) { _categoriesRepository = categoriesRepository; _subcategoriesRepository = subcategoriesRepository; }