示例#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
        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;
 }
 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
 public Application(ILogger logger, IHorseService horseService)
 {
     _logger       = logger;
     _horseService = horseService;
 }