예제 #1
0
        public Seed(UserManager <User> userManager,
                    RoleManager <Role> roleManager,
                    IUnitOfWork unitOfWork,
                    ISeasonRepository seasonRepository,
                    IStadiumRepository stadiumRepository,
                    IClubRepository clubRepository,
                    ISquadRepository squadRepository,
                    IKitRepository kitRepository,
                    IManagerRepository managerRepository,
                    IPlayerRepository playerRepository)
        {
            _userManager       = userManager;
            _roleManager       = roleManager;
            _unitOfWork        = unitOfWork;
            _seasonRepository  = seasonRepository;
            _stadiumRepository = stadiumRepository;
            _clubRepository    = clubRepository;
            _squadRepository   = squadRepository;
            _kitRepository     = kitRepository;
            _managerRepository = managerRepository;
            _playerRepository  = playerRepository;

            _jsonSerializerSettings = new JsonSerializerSettings
            {
                NullValueHandling     = NullValueHandling.Ignore,
                MissingMemberHandling = MissingMemberHandling.Ignore
            };
        }
예제 #2
0
 public MatchService(IUnitOfWork unitOfWork,
                     ISeasonRepository seasonRepository,
                     IClubRepository clubRepository,
                     ISquadRepository squadRepository,
                     IKitRepository kitRepository,
                     IMatchRepository matchRepository,
                     IGoalRepository goalRepository
                     )
 {
     _unitOfWork       = unitOfWork;
     _seasonRepository = seasonRepository;
     _clubRepository   = clubRepository;
     _squadRepository  = squadRepository;
     _kitRepository    = kitRepository;
     _matchRepository  = matchRepository;
     _goalRepository   = goalRepository;
 }
예제 #3
0
 public KitController(ILogger <KitController> logger, IKitRepository kitRepo)
 {
     _logger  = logger;
     _kitRepo = kitRepo;
 }
예제 #4
0
 public KitAppService(IMapper mapper, IKitRepository repository, IValidator <Kit> validator)
     : base(mapper, repository, validator)
 {
 }
 public KitService(IUnitOfWork unitOfWork,
                   IKitRepository kitRepository)
 {
     _unitOfWork    = unitOfWork;
     _kitRepository = kitRepository;
 }