Пример #1
0
        public HelpProvider(IReporter reporter, ICommandNamesProvider commandNamesProvider)
        {
            if (reporter == null)
            {
                throw new ArgumentNullException(nameof(reporter));
            }

            if (commandNamesProvider == null)
            {
                throw new ArgumentNullException(nameof(commandNamesProvider));
            }

            this.reporter             = reporter;
            this.commandNamesProvider = commandNamesProvider;
        }
Пример #2
0
        public SeedCommandRunner(
            ICommandNamesProvider commandNamesProvider,
            ITypesProvider typesProvider,
            Func <Type, IDbSeeder> seederFactory)
        {
            if (commandNamesProvider == null)
            {
                throw new ArgumentNullException(nameof(commandNamesProvider));
            }

            if (typesProvider == null)
            {
                throw new ArgumentNullException(nameof(typesProvider));
            }

            if (seederFactory == null)
            {
                throw new ArgumentNullException(nameof(seederFactory));
            }

            this.commandNamesProvider = commandNamesProvider;
            this.typesProvider        = typesProvider;
            this.seederFactory        = seederFactory;
        }