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;
 }
예제 #3
0
 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;
 }
예제 #4
0
        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);
        }
예제 #6
0
 public GadgetService(IGadgetRepository gadgetRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork)
 {
     _gadgetsRepo  = gadgetRepository;
     _categoryRepo = categoryRepository;
     _unitOfWork   = unitOfWork;
 }
예제 #7
0
 public ListApiController(IGadgetRepository repo)
 {
     repository = repo;
 }
예제 #8
0
 public GadgetService(IGadgetRepository gadgetRepository, ICategoryRepository, ICategoryRepository categoryReposory, IUnitOfWork unitOfWork)
예제 #9
0
 public StatisticController(IGadgetRepository repo)
 {
     repository = repo;
 }
예제 #10
0
 public GadgetController(IGadgetRepository gadgetRepository, IMapper mapper, IAccountService accountService)
 {
     _gadgetRepository = gadgetRepository;
     _mapper           = mapper;
     _accountService   = accountService;
 }
예제 #11
0
 public GadgetService(IGadgetRepository gadgetsRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork)
 {
     this.gadgetsRepository = gadgetsRepository;
     this.categoryRepository = categoryRepository;
     this.unitOfWork = unitOfWork;
 }
예제 #12
0
 // for di
 public GadgetService(IGadgetRepository _gadgetsRepository, ICategoryRepository _categoriesRepository, IUnitOfWork _unitOfWork)
 {
     gadgetsRepository    = _gadgetsRepository;
     categoriesRepository = _categoriesRepository;
     unitOfWork           = _unitOfWork;
 }
예제 #13
0
 public GadgetService(IGadgetRepository gadgetsRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork)
 {
     _gadgetsRepository = gadgetsRepository;
     _categoryRepository = categoryRepository;
     _unitOfWork = unitOfWork;
 }
예제 #14
0
 public HomeController(IGadgetRepository repo)
 {
     repository = repo;
 }
예제 #15
0
 public WebAppiController(IGadgetRepository repo)
 {
     repository = repo;
 }