Beispiel #1
0
 public BBTeamController(IEmployeeService employeeService, IBaseballTeamService its, IBaseballAllianceService ias, ISourceTypeService ists)
     : base(employeeService)
 {
     _IBaseballTeamService = its;
     _IBaseballAllianceService = ias;
     _ISourceTypeService = ists;
 }
Beispiel #2
0
 public IHTeamController(IEmployeeService employeeService, IIceHockeyTeamService its, IIceHockeyAllianceService ias, ISourceTypeService ists)
     : base(employeeService)
 {
     _IIceHockeyTeamService = its;
     _IIceHockeyAllianceService = ias;
     _ISourceTypeService = ists;
 }
Beispiel #3
0
 public SourcesController(ISourceService sourceService,
                          ISourceTypeService sourceTypeService,
                          IMapper mapper)
 {
     _sourceService     = sourceService ?? throw new ArgumentNullException(nameof(sourceService));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _sourceTypeService = sourceTypeService ?? throw new ArgumentNullException(nameof(sourceTypeService));
 }
Beispiel #4
0
 //
 // GET: /AmericanFootball/AFB/
 public AFBController(IAFBService afbService, IAFBAllianceService allianceService, IScoreModifyRecordService scoreModifyRecordService, ISourceTypeService sourceTypeService, IAFBTeamService afbTeamService, IEmployeeService employeeService)
     : base(employeeService)
 {
     _IAFBService = afbService;
     _IAFBAllianceService = allianceService;
     _IScoreModifyRecordService = scoreModifyRecordService;
     _ISourceTypeService = sourceTypeService;
     _IAFBTeamService = afbTeamService;
 }
 public BasketBallController(IBasketballService basketballService, IBasketballAllianceService basketballAllianceService, IModifyRecordService ModifyRecordService, IBasketballTeamService BasketballTeamService, ISourceTypeService SourceTypeService, IScoreModifyRecordService ScoreModifyRecordService, IEmployeeService employeeService)
     : base(employeeService)
 {
     _IBasketballService = basketballService;
     _IBasketballAllianceService = basketballAllianceService;
     _IModifyRecordService = ModifyRecordService;
     _IBasketballTeamService = BasketballTeamService;
     _ISourceTypeService = SourceTypeService;
     _IScoreModifyRecordService = ScoreModifyRecordService;
 }
 public void Initialize()
 {
     sourceTypeRepository = new Mock <ISourceTypeRepository>();
     unitOfWork           = new Mock <IUnitOfWork>();
     sourceTypeService    = new SourceTypeService(sourceTypeRepository.Object, unitOfWork.Object);
     lstSources           = new List <SourceTypeEntitiy>()
     {
         new SourceTypeEntitiy()
         {
             Id = 1, Name = "Advert"
         },
         new SourceTypeEntitiy()
         {
             Id = 2, Name = "Word Of Mouth"
         },
         new SourceTypeEntitiy()
         {
             Id = 3, Name = "Others"
         }
     };
 }
Beispiel #7
0
 public SubscriptionController(ISubscribersService subscribersService, ISourceTypeService sourceTypeService)
 {
     this.subscribersService = subscribersService;
     this.sourceTypeService  = sourceTypeService;
 }