Exemple #1
0
 public WeatherForecastController(
     IMediatorHandler mediator,
     IMapper mapper,
     IWeatherForecastQuery weatherForecastQuery)
     : base(mediator, mapper)
 {
     _weatherForecastQuery = weatherForecastQuery;
 }
        // private readonly DbTransaction _dbTransaction;

        public WeatherForecastController(
            INotificationHandler <DomainNotification> notifications,
            IMediatorHandler mediator,
            IMapper mapper,
            // DbTransaction dbTransaction,
            IWeatherForecastQuery weatherForecastQuery)
            : base(notifications, mediator, mapper)
        {
            _weatherForecastQuery = weatherForecastQuery;
            // _dbTransaction = dbTransaction;
        }
        public PostWeatherForecastCommandValidation(IWeatherForecastQuery weatherForecastQuery)
        {
            _weatherForecastQuery = weatherForecastQuery;

            #region [ Validations ]

            DateCantBeNull( );
            TemperatureCantBeNull( );
            SummaryCantBeNull( );

            #endregion [ Validations ]
        }