示例#1
0
        public ShowEventsCommand(IPostgresDataProvider dp, IWriter writer)
        {
            if (dp == null)
            {
                throw new ArgumentNullException("Data provider cannot be null!");
            }

            if (writer == null)
            {
                throw new ArgumentNullException("Writer cannot be null!");
            }

            this.dp     = dp;
            this.writer = writer;
        }
        public ImportTicketsListCommand(IPostgresDataProvider dp, IWriter writer, ITicketModelsFactory factory)
        {
            if (dp == null)
            {
                throw new ArgumentNullException("Data provider cannot be null!");
            }

            if (writer == null)
            {
                throw new ArgumentNullException("Writer cannot be null!");
            }

            if (factory == null)
            {
                throw new ArgumentNullException("Factory cannot be null!");
            }

            this.dp      = dp;
            this.writer  = writer;
            this.factory = factory;
        }
示例#3
0
 public CommandFactory(IReportGenerator reporter,
                       ILogger logger,
                       IReader reader,
                       IWriter writer,
                       IPostgresDataProvider pgDp,
                       ISqlServerDataProvider sqlDp,
                       ISqliteDataProvider sqliteDp,
                       IModelsFactory modelsFactory,
                       ITicketModelsFactory ticketFactory,
                       IExcelImporter excelImporter)
 {
     this.pgDp          = pgDp;
     this.sqlDp         = sqlDp;
     this.sqliteDp      = sqliteDp;
     this.reader        = reader;
     this.writer        = writer;
     this.logger        = logger;
     this.reporter      = reporter;
     this.modelsFactory = modelsFactory;
     this.ticketFactory = ticketFactory;
     this.excelImporter = excelImporter;
 }