コード例 #1
0
 public HorsesController(IHorseService horseService,
                         IMapper <Dto.Horse, Models.HorseDetail> horseDetailMapper,
                         IMapper <Dto.Horse, Models.HorseSummary> horseSummaryMapper)
 {
     _horseService       = horseService;
     _horseDetailMapper  = horseDetailMapper;
     _horseSummaryMapper = horseSummaryMapper;
 }
コード例 #2
0
 public HorseController(SportBetsContext context,
                        IHorseFinder horseFinder,
                        IUnitOfWork unitOfWork,
                        IRepository <Horse> repository,
                        IHorseService horseService)
 {
     _context      = context;
     _horseFinder  = horseFinder;
     _unitOfWork   = unitOfWork;
     _repository   = repository;
     _horseService = horseService;
 }
コード例 #3
0
ファイル: GetAll.cs プロジェクト: technicallamb/PragmaticTDD
        public void TestSetup()
        {
            HorseFactory.Create(Context).WithColor().WithDam().WithSire();

            _horseService = Container.Resolve <IHorseService>();
        }
コード例 #4
0
 public HorseAPIController(IHorseService horseService)
 {
     _horseService = horseService;
     _mainResponse = new MainResponse();
 }
コード例 #5
0
 public HorseController(IHorseService _IHorseService)
 {
     IHorseService = _IHorseService;
 }
コード例 #6
0
 public HorsesController(IHorseService horseService)
 {
     _horseService = horseService;
 }
コード例 #7
0
 public HorsesController(IOptions <AppConfig> appConfig, ILogger <HorsesController> logger, IHorseService horseSerivce)
 {
     _appConfig    = appConfig;
     _logger       = logger;
     _horseService = horseSerivce;
 }
コード例 #8
0
ファイル: Application.cs プロジェクト: vbhargav80/BetEasy
 public Application(ILogger logger, IHorseService horseService)
 {
     _logger       = logger;
     _horseService = horseService;
 }