public Engine(IRender render, IStatisticFactory statisticFactory, IStatisticStorage statisticStorage) { if (render == null) { throw new ArgumentNullException("render"); } if (statisticFactory == null) { throw new ArgumentNullException("statisticFactory"); } if (statisticStorage == null) { throw new ArgumentNullException("statisticStorage"); } this.Render = render; this.StatisticFactory = statisticFactory; this.StatisticStorage = statisticStorage; this.State = new StartState(this); this.CommandFactory = new CommandFactory(this); this.Statistic = StatisticFactory.CreateStatistic(); }
/// <summary> /// Initializes a new instance of the <see cref="Engine"/> class. /// </summary> /// <param name="render">The render.</param> /// <param name="statisticFactory">The statisticFactory.</param> /// <param name="statisticStorage">The statisticStorage.</param> public Engine(IRender render, IStatisticFactory statisticFactory, IStatisticStorage statisticStorage) { if (render == null) { throw new ArgumentNullException(nameof(render)); } if (statisticFactory == null) { throw new ArgumentNullException(nameof(statisticFactory)); } if (statisticStorage == null) { throw new ArgumentNullException(nameof(statisticStorage)); } this.Render = render; this.StatisticFactory = statisticFactory; this.StatisticStorage = statisticStorage; this.State = new StartState(this); this.CommandFactory = new CommandFactory(this); this.Statistic = this.StatisticFactory.CreateStatistic(); }
public DateDifService( IDateDifReportBuilder reportBuilder, IStatisticStorage storage, IGroupingFactory groupingFactory) { this.reportBuilder = reportBuilder; this.storage = storage; this.groupingFactory = groupingFactory; }
public MergeService(IReportBuilder reportBuilder, IStatisticStorage storage) { ReportBuilder = reportBuilder; this.storage = storage; }
public StatisticsService(IDinnerPrincipalProvider principalProvider, IStatisticStorage statisticStorage) { this.principalProvider = principalProvider; this.statisticStorage = statisticStorage; }
public BetweenService(IReportBuilder reportBuilder, IStatisticStorage statisticStorage) { this.reportBuilder = reportBuilder; this.statisticStorage = statisticStorage; }
public StatisticLogic(IStatisticStorage statisticStorage) { _statisticStorage = statisticStorage; }
public StatisticService(IStatisticStorage statisticStorage) { this.statisticStorage = statisticStorage; }
public GitStatisticService(IStatisticStorage statisticStorage, IReportBuilder reportBuilder) { this.statisticStorage = statisticStorage; this.reportBuilder = reportBuilder; this.powerShellExecutor = new PowerShellExecutor(); }
public StatisticLogicEmployee(IStatisticStorage statisticStorage) { _statisticStorage = statisticStorage; }