public ScoresController( IScoresService scoresService, IUIService uiService) { this.scoresService = scoresService; this.uiService = uiService; }
public ScoreServiceTest() { var kernel = NinjectRegistrator.GetKernel("test"); _scoresService = kernel.Get <IScoresService>(); _userService = kernel.Get <IUserService>(); }
static BasePresenter() { var kernel = NinjectRegistrator.GetKernel(); UserService = kernel.Get <IUserService>(); ScoresService = kernel.Get <IScoresService>(); }
public ScoreboardController(IScoresService scoresService, IUsersService usersService, IScoresFactory scoresFactory) { Guard.WhenArgument <IScoresService>(scoresService, "Scores service cannot be null.") .IsNull() .Throw(); Guard.WhenArgument <IUsersService>(usersService, "Users service cannot be null.") .IsNull() .Throw(); Guard.WhenArgument <IScoresFactory>(scoresFactory, "Scores factory cannot be null.") .IsNull() .Throw(); this.scoresService = scoresService; this.usersService = usersService; this.scoresFactory = scoresFactory; }
public ScoresController(IScoresService scores) { this.scores = scores; }
public ScoresController(ILogger <ScoresController> logger, IScoresService scoresService, IScoresRepository scoresRepository) { _logger = logger; _scoresService = scoresService; _scoresRepository = scoresRepository; }
public ScoresController( IScoresService scoresService) { this.scoresService = scoresService; }
/// <summary> /// Constructor of scores controller with injected reference to required services. /// </summary> /// <param name="scoresService">Reference to scores service</param> /// <param name="groupsService">Reference to group service</param> public ScoresController(IScoresService scoresService, IGroupService groupsService) { this.scoresService = scoresService; this.groupsService = groupsService; }