public ImageController(IRepository repository, IRatingCalculator rating, ISortCalculator sort, IImageFolder folder) { _repository = repository; _rating = rating; _sort = sort; _folder = folder; }
public CommunityController(IBnhConfig config, IBnhRepositories repos, IRatingCalculator rating) : base(config, repos, rating) { this.config = config; this.repos = repos; this.rating = rating; }
public AdminController(IBnhRepositories repos, IRatingCalculator rating, IBnhConfig config, IPathMapper pathMapper, ISearchProvider searcher) { this.repos = repos; this.rating = rating; this.config = config; this.pathMapper = pathMapper; this.searcher = searcher; }
public SceneViewModelContext(Controller controller, IConfig config, IRepositories repos, IRatingCalculator rating, ISceneHolder sceneHolder) : base(controller, config, repos, rating) { this.SceneHolder = sceneHolder; this.LinkableBricks = new Lazy<Dictionary<string,Brick>>(() => this.Repos.SpecialScenes.Single(s => s.SceneId == Constants.LinkableBricksSceneId) .Scene.Walls.SelectMany(w => w.Bricks) .ToDictionary(b => b.BrickId, b => b)); }
public MainWindow() { var factory = new BasicFactory(); InitializeComponent(); _repository = factory.GetRepository(RepositoryType.FILEREPOSITORY); _calculator = factory.GetCalculator(CalculatorType.HSERATINGCALCULATOR); _repository.GradesChanged += RefreshGrid; _repository.IOExceptionOccured += IOExceptionAlert; dataGridGrades.ItemsSource = _repository.Grades; }
public ChampionshipManager(TeamCreator teamCreator, IMatchResultGatherer matchResultGatherer, IScoreCalculator scoreCalculator, IRatingCalculator ratingCalculator, IRepository repository) { TeamCreator = teamCreator; MatchResultGatherer = matchResultGatherer; ScoreCalculator = scoreCalculator; RatingCalculator = ratingCalculator; Repository = repository; }
public ViewModelContext(Controller controller, IConfig config, IRepositories repos, IRatingCalculator rating) { this.controller = controller; this.UrlHelper = new UrlHelper(controller.HttpContext.Request.RequestContext); this.HtmlHelper = new HtmlHelper(new ViewContext(controller.ControllerContext, new WebFormView( controller.ControllerContext, "fake"), new ViewDataDictionary(), new TempDataDictionary(), new StringWriter()), new ViewPage()); this.Config = config; this.Repos = repos; this.RatingCalculator = rating; this.ViewBag = controller.ViewBag; }
public AddEditStudentWindow(Student student, IRatingCalculator calculator) { InitializeComponent(); _calculator = calculator; if (student != null) { Title = "Edit student"; textBoxName.Text = student.Name; dataGridGrades.ItemsSource = student.Grades; textBlockRating.Text = $"Rating: {_calculator.GetRating(student)}"; } else { Title = "Add course"; } textBoxName.Focus(); Student = student; }
public PlayerRepository(ApplicationDbContext context, IRatingCalculator calc) { _context = context ?? throw new ArgumentNullException(nameof(context)); _calc = calc ?? throw new ArgumentNullException(nameof(calc)); }
public TemplateSceneController(IConfig config, IRepositories repos, IRatingCalculator rating) : base(config, repos, rating) { this.repos = repos; }
public RatingUpdater(TContext context, IRatingCalculator ratingCalculator) : base(ratingCalculator) { _context = context; }
public UpdateImageRating(IRepository repository, IRatingCalculator rating, ISortCalculator sort) { _repository = repository; _rating = rating; _sort = sort; }
public SceneController(IConfig config, IRepositories repos, IRatingCalculator rating) { this.config = config; this.repos = repos; this.rating = rating; }
/// <summary> /// Initialize the <see cref="IRatingUpdater"/>. /// </summary> /// <param name="ratingCalculator">The rating calculator.</param> protected RatingUpdaterBase(IRatingCalculator ratingCalculator) { _ratingCalculator = ratingCalculator; }