/// <summary> /// Initializes a new instance of the <see cref="GameService"/> class. /// </summary> /// <param name="injuryService">Injury service</param> /// <param name="incomeService">Income service</param> /// <param name="experienceService">Experience service</param> /// <param name="gangerManager">Ganger manager</param> public GameService( IInjuryService injuryService, IIncomeService incomeService, IExperienceService experienceService, IGangerManager gangerManager) { _injuryService = injuryService ?? throw new ArgumentNullException(nameof(injuryService)); _incomeService = incomeService ?? throw new ArgumentNullException(nameof(incomeService)); _experienceService = experienceService ?? throw new ArgumentNullException(nameof(experienceService)); _gangerManager = gangerManager ?? throw new ArgumentNullException(nameof(gangerManager)); }
//public PlayerService() //{ // this.context = new BookmakerContext(); // this.injuryService = new InjuryService(); //} // Constructor /// <summary> /// Initializes a new instance of <c>PlayerService</c> with parameter <paramref name="context"/>. /// </summary> /// <param name="context">A BookmakerContext.</param> public PlayerService(BookmakerContext context) { this.context = context; this.injuryService = new InjuryService(context); }
public InjuryDetailsViewModelFactory(IInjuryService injuryService, IBodyPartService bodyPartService, IAccidentRecordService accidentRecordService) { _injuryService = injuryService; _bodyPartService = bodyPartService; _accidentRecordService = accidentRecordService; }
public GameService(IInjuryService injuryService, IIncomeService incomeService, IExperienceService experienceService) { _injuryService = injuryService ?? throw new ArgumentNullException(nameof(injuryService)); _incomeService = incomeService ?? throw new ArgumentNullException(nameof(incomeService)); _experienceService = experienceService ?? throw new ArgumentNullException(nameof(experienceService)); }