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