示例#1
0
 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);
        }
示例#3
0
 public HomeController(ICategoryService categoryService, IGadgetService gadgetService)
 {
     this.categoryService = categoryService;
     this.gadgetService   = gadgetService;
 }
示例#4
0
 public GadgetsController(IGadgetService gadgetService, IMapper mapper)
 {
     _gadgetService = gadgetService;
     _mapper        = mapper;
 }
示例#5
0
 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;
 }
示例#8
0
 public GadgetController(ILogger <GadgetController> logger, IGadgetService gadgetService)
 {
     _logger        = logger;
     _gadgetService = gadgetService;
 }
示例#9
0
 public HomeController(ICategoryService categoryService, IGadgetService gadgetService)
 {
     this.categoryService = categoryService;
     this.gadgetService = gadgetService;
 }
示例#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;
 }