コード例 #1
0
 public WooliesXController(ISettingService settingService, IProductService productService, ITrolleyService trolleyService, ILogger <WooliesXController> logger)
 {
     _settingService = settingService;
     _productService = productService;
     _trolleyService = trolleyService;
     _logger         = logger;
 }
コード例 #2
0
 public TechChallengeController(IOptions <WooliesX> configuration, IProductSorter productSorter,
                                ITrolleyService trolleryService)
 {
     _configuration   = configuration?.Value;
     _productSorter   = productSorter;
     _trolleryService = trolleryService;
 }
コード例 #3
0
        public ExerciseControllerTests()
        {
            _userService    = Substitute.For <IUserService>();
            _productService = Substitute.For <IProductService>();
            _trolleyService = Substitute.For <ITrolleyService>();

            _controller = new ExerciseController(_userService, _productService, _trolleyService);
        }
コード例 #4
0
 public AnswersController(IUserService userService, IProductService productService,
                          ITrolleyService trolleyService, ILogger <AnswersController> logger)
 {
     _userService    = userService;
     _productService = productService;
     _trolleyService = trolleyService;
     _logger         = logger;
 }
コード例 #5
0
 public ExerciseController(IUserService userService,
                           IProductService productService,
                           ITrolleyService trolleyService)
 {
     _userService    = userService;
     _productService = productService;
     _trolleyService = trolleyService;
 }
コード例 #6
0
 public AnswersController(
     IOptions <UserProfile> options,
     IProductService productService,
     ITrolleyService trolleyService)
 {
     _userProfile    = options.Value;
     _productService = productService;
     _trolleyService = trolleyService;
 }
コード例 #7
0
 public AnswersController(ITrolleyService trolleyService,
                          IProductSortFactory productSortFactory,
                          IOptions <ApiConfig> config,
                          ILogger <AnswersController> logger)
 {
     _trolleyService     = trolleyService;
     _productSortFactory = productSortFactory;
     _config             = config.Value;
     _logger             = logger;
 }
コード例 #8
0
 public AnswersController(ILogger <AnswersController> logger,
                          IUserService userService,
                          IProductService productService,
                          ITrolleyService trolleyService)
 {
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     _userService    = userService ?? throw new ArgumentNullException(nameof(userService));
     _productService = productService ?? throw new ArgumentNullException(nameof(productService));
     _trolleyService = trolleyService ?? throw new ArgumentNullException(nameof(trolleyService));
 }
コード例 #9
0
ファイル: TrollyController.cs プロジェクト: mtorkamani/ECom
 public TrolleyController(ITrolleyService trolleyService, ILogger <TrolleyController> logger)
 {
     this.trolleyService = trolleyService;
     this.logger         = logger;
 }
コード例 #10
0
ファイル: Exercise3.cs プロジェクト: mortdale/wx
 public Exercise3(ITrolleyService trolleyServices)
 {
     _trolleyServices = trolleyServices;
 }
コード例 #11
0
 public TrolleyController(ILogger <TrolleyController> logger,
                          ITrolleyService trolleyService)
 {
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     _trolleyService = trolleyService ?? throw new ArgumentNullException(nameof(trolleyService));
 }
コード例 #12
0
 public TrolleyController(ITrolleyService trolleyService, IConfiguration configuration)
 {
     _trolleySerivce = trolleyService;
     _token          = configuration["token"];
 }
コード例 #13
0
 public TrolleyTotalController(ITrolleyService trolleyService)
 {
     _trolleyService = trolleyService;
 }
コード例 #14
0
 public AnswersApi(IProductService productService, ITrolleyService trolleyService)
 {
     _productService = productService;
     _trolleyService = trolleyService;
 }
コード例 #15
0
 public TrolleyServiceTests()
 {
     _mockTrolleyService = new TrolleyService(_shoppingResourceService.Object);
 }
コード例 #16
0
 public ResourceController(IUserService userService, IProductService productService, ITrolleyService trolleyService)
 {
     _userService    = userService;
     _productService = productService;
     _trolleyService = trolleyService;
 }
コード例 #17
0
 public GetTrolleyTotalRequestHandler(ITrolleyService trolleyService, IMapper mapper)
 {
     _trolleyService = trolleyService;
     _mapper         = mapper;
 }
コード例 #18
0
 public TrolleyServiceTests()
 {
     _mockTrolleyRepository = new Mock <ITrolleyRepository>(MockBehavior.Strict);
     _sut = new TrolleyService(_mockTrolleyRepository.Object);
 }
コード例 #19
0
 public GetTrolleyTotalHandler(ITrolleyService trolleyService)
 {
     _trolleyService = trolleyService;
 }
コード例 #20
0
 public TrolleyController(ILogger <TrolleyController> logger
                          , ITrolleyService trolleyService)
 {
     _logger         = logger;
     _trolleyService = trolleyService;
 }