public GadgetService(IGadgetRepository gadgetRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork) { this.gadgetRepository = gadgetRepository; this.categoryRepository = categoryRepository; this.unitOfWork = unitOfWork; }
public ContractController(IContractRepository contractRepository, IGadgetRepository gadgetRepository, IMapper mapper, IAccountService accountService) { _contractRepository = contractRepository; _gadgetRepository = gadgetRepository; _mapper = mapper; _accountService = accountService; }
public GadgetService(IGadgetRepository gadgetsRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork) { // Any required repository for this service is injected through this constructor // and this is done through a Dependency Container which we'll setup in teh MVC project's start up class, // using Autofac framework. this.gadgetsRepository = gadgetsRepository; this.categoryRepository = categoryRepository; this.unitOfWork = unitOfWork; }
public void setup() { _factoryFake = Substitute.For <IDbFactory>(); _unitOfWorkFake = Substitute.For <IUnitOfWork>(); _gadgetRepFake = Substitute.For <IGadgetRepository>(); _categoryRepFake = Substitute.For <ICategoryRepository>(); // _service = new CategoryService(_categoryRepFake, _unitOfWorkFake); _sut = new GadgetService(_gadgetRepFake, _categoryRepFake, _unitOfWorkFake); }
public void setup() { _factoryFake = Substitute.For <IDbFactory>(); _unitOfWorkFake = Substitute.For <IUnitOfWork>(); _gadgetRepFake = Substitute.For <IGadgetRepository>(); _categoryRepFake = Substitute.For <ICategoryRepository>(); _categoryService = Substitute.For <ICategoryService>(); _gadgetService = Substitute.For <IGadgetService>(); _sut = new HomeController(_categoryService, _gadgetService); }
public GadgetService(IGadgetRepository gadgetRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork) { _gadgetsRepo = gadgetRepository; _categoryRepo = categoryRepository; _unitOfWork = unitOfWork; }
public ListApiController(IGadgetRepository repo) { repository = repo; }
public GadgetService(IGadgetRepository gadgetRepository, ICategoryRepository, ICategoryRepository categoryReposory, IUnitOfWork unitOfWork)
public StatisticController(IGadgetRepository repo) { repository = repo; }
public GadgetController(IGadgetRepository gadgetRepository, IMapper mapper, IAccountService accountService) { _gadgetRepository = gadgetRepository; _mapper = mapper; _accountService = accountService; }
public GadgetService(IGadgetRepository gadgetsRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork) { this.gadgetsRepository = gadgetsRepository; this.categoryRepository = categoryRepository; this.unitOfWork = unitOfWork; }
// for di public GadgetService(IGadgetRepository _gadgetsRepository, ICategoryRepository _categoriesRepository, IUnitOfWork _unitOfWork) { gadgetsRepository = _gadgetsRepository; categoriesRepository = _categoriesRepository; unitOfWork = _unitOfWork; }
public GadgetService(IGadgetRepository gadgetsRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork) { _gadgetsRepository = gadgetsRepository; _categoryRepository = categoryRepository; _unitOfWork = unitOfWork; }
public HomeController(IGadgetRepository repo) { repository = repo; }
public WebAppiController(IGadgetRepository repo) { repository = repo; }