Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 3
0
 public DateDifService(
     IDateDifReportBuilder reportBuilder,
     IStatisticStorage storage,
     IGroupingFactory groupingFactory)
 {
     this.reportBuilder   = reportBuilder;
     this.storage         = storage;
     this.groupingFactory = groupingFactory;
 }
Ejemplo n.º 4
0
 public MergeService(IReportBuilder reportBuilder,
                     IStatisticStorage storage)
 {
     ReportBuilder = reportBuilder;
     this.storage  = storage;
 }
Ejemplo n.º 5
0
 public StatisticsService(IDinnerPrincipalProvider principalProvider, IStatisticStorage statisticStorage)
 {
     this.principalProvider = principalProvider;
     this.statisticStorage  = statisticStorage;
 }
Ejemplo n.º 6
0
 public BetweenService(IReportBuilder reportBuilder, IStatisticStorage statisticStorage)
 {
     this.reportBuilder    = reportBuilder;
     this.statisticStorage = statisticStorage;
 }
Ejemplo n.º 7
0
 public StatisticLogic(IStatisticStorage statisticStorage)
 {
     _statisticStorage = statisticStorage;
 }
Ejemplo n.º 8
0
 public StatisticService(IStatisticStorage statisticStorage)
 {
     this.statisticStorage = statisticStorage;
 }
Ejemplo n.º 9
0
 public GitStatisticService(IStatisticStorage statisticStorage, IReportBuilder reportBuilder)
 {
     this.statisticStorage   = statisticStorage;
     this.reportBuilder      = reportBuilder;
     this.powerShellExecutor = new PowerShellExecutor();
 }
Ejemplo n.º 10
0
 public StatisticLogicEmployee(IStatisticStorage statisticStorage)
 {
     _statisticStorage = statisticStorage;
 }