public void Constructor_ThrowsIfNulls() { IRefreshOptions options = null; IConfigurationRoot configuration = null; Assert.Throws <ArgumentNullException>(() => new RefreshEndpoint(options, configuration)); options = new RefreshOptions(); Assert.Throws <ArgumentNullException>(() => new RefreshEndpoint(options, configuration)); }
public RefreshEndpoint(IRefreshOptions options, IConfiguration configuration, ILogger <RefreshEndpoint> logger = null) : base(options) { _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _logger = logger; }