Exemple #1
0
        void ExceptionHandlerTypeIsRegistered()
        {
            var options = new EventingOptions();

            options.RegisterExceptionHandler <TestExceptionHandler>();
            Assert.Equal(typeof(TestExceptionHandler), options.ExceptionHandlerType);
        }
        void ExceptionHandlerTypeIsRegistered()
        {
            var services = new ServiceCollection();
            var options  = new EventingOptions(services);

            options.RegisterExceptionHandler <TestExceptionHandler>();
            Assert.Equal(typeof(TestExceptionHandler), options.ExceptionHandlerType);
        }