Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public RefreshEndpoint(IRefreshOptions options, IConfiguration configuration, ILogger <RefreshEndpoint> logger = null)
     : base(options)
 {
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _logger        = logger;
 }