Пример #1
0
        public JornadaController(IJornadaQueries jornadaQueries, IJornadaCommands jornadaCommands)
        {
            if (jornadaQueries == null)
            {
                throw new ArgumentNullException("jornadaQueries");
            }

            if (jornadaCommands == null)
            {
                throw new ArgumentNullException("jornadaCommands");
            }

            this.jornadaQueries = jornadaQueries;
            this.jornadaCommands = jornadaCommands;
        }
Пример #2
0
        public JornadaService(
            IJornadaQueries jornadaQueries,
            IJornadaCommands jornadaCommands,
            ITimeProvider timeProvider)
        {
            if (jornadaQueries == null)
            {
                throw new ArgumentNullException("jornadaQueries");
            }

            if (jornadaCommands == null)
            {
                throw new ArgumentNullException("jornadaCommands");
            }

            if (timeProvider == null)
            {
                throw new ArgumentNullException("timeProvider");
            }

            this.jornadaQueries = jornadaQueries;
            this.jornadaCommands = jornadaCommands;
            this.timeProvider = timeProvider;
        }