public LevelAnalog190Ohm(IConfiguration config, IDatabase database, IGadgetService gadgetService, IGadgetActionService gadgetActionService)
 {
     _config              = config;
     _database            = database;
     _gadgetActionService = gadgetActionService;
     _gadgetService       = gadgetService;
 }
        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);
        }
Beispiel #3
0
 public HomeController(ICategoryService categoryService, IGadgetService gadgetService)
 {
     this.categoryService = categoryService;
     this.gadgetService   = gadgetService;
 }
Beispiel #4
0
 public GadgetsController(IGadgetService gadgetService, IMapper mapper)
 {
     _gadgetService = gadgetService;
     _mapper        = mapper;
 }
 public SettingsService(IConfiguration config, IDatabase database, IGadgetService gadgetService)
 {
     _config        = config;
     _database      = database;
     _gadgetService = gadgetService;
 }
 public HomeController(ICategoryService categoryService, IGadgetService gadgetService)
 {
     _categoryService = categoryService;
     _gadgetService   = gadgetService;
 }
 public GameStartController(ICategoryService categoryService, IGadgetService gadgetService)
 {
     this.categoryService = categoryService;
     this.gadgetService = gadgetService;
 }
Beispiel #8
0
 public GadgetController(ILogger <GadgetController> logger, IGadgetService gadgetService)
 {
     _logger        = logger;
     _gadgetService = gadgetService;
 }
 public HomeController(ICategoryService categoryService, IGadgetService gadgetService)
 {
     this.categoryService = categoryService;
     this.gadgetService = gadgetService;
 }
Beispiel #10
0
 //Pass the DI for the services
 StoresController(ICategoryService categoryService, IGadgetService gadgetService)
 {
     this.categoryService = categoryService;
     this.gadgetService   = gadgetService;
 }
 public HomeController(ICategoryService categoryService, IGadgetService gadgetService, ICategoryRepository categorysRepository)
 {
     this.categoryService     = categoryService;
     this.gadgetService       = gadgetService;
     this.categorysRepository = categorysRepository;
 }