コード例 #1
0
#pragma warning restore IDE0052 // Remove unread private members

        public WeatherAlertObservable(WeatherAlertParameters parameters)
        {
            _parameters = parameters;
        }
コード例 #2
0
#pragma warning restore IDE0052 // Remove unread private members

        /// <summary>
        /// Initializes a new instance of the <see cref="MockWeatherAlertObservable" /> class.
        /// </summary>
        /// <param name="weatherAlertParameters">The parameters to this WeatherAlertObservable.</param>
        /// <exception cref="System.ArgumentOutOfRangeException">Thrown if weatherAlertParameters are invalid</exception>
        public MockWeatherAlertObservable(WeatherAlertParameters weatherAlertParameters)
        {
            _weatherAlertParameters = weatherAlertParameters;
        }