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; }
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; }