Exemple #1
0
 public FallbackExceptionHandlerTest()
 {
     _options            = new FallbackExceptionHandlerOptions();
     _optionsMonitorMock = new Mock <IOptionsMonitor <FallbackExceptionHandlerOptions> >();
     _optionsMonitorMock.Setup(x => x.CurrentValue).Returns(_options);
     sut = new FallbackExceptionHandler(_optionsMonitorMock.Object);
 }
 public FallbackExceptionHandler(IOptionsMonitor <FallbackExceptionHandlerOptions> options)
 {
     _options = options.CurrentValue;
 }