Beispiel #1
0
            public void DoesNotThrowExceptionsIfLoggerNotCreatable()
            {
                var configuration = new ConfigurationBase
                {
                    Logger = new TypeConfiguration
                    {
                        TypeName = "Sem.Authentication.MvcHelper.A598D4BDB7244B62A4A158201C118882, Sem.Authentication.MvcHelper",
                    }
                };

                var target = new SampleAuthenticator(configuration);

                target.LogException(new Exception("Sample"));
                var result = target.InternalLogger;

                Assert.IsNull(result);
            }
Beispiel #2
0
            public void CreatesStandardLogger()
            {
                var configuration = new ConfigurationBase
                {
                    Logger = new TypeConfiguration
                    {
                        TypeName = "Sem.Authentication.AppInfrastructure.DebugLogger, Sem.Authentication",
                    }
                };

                var target = new SampleAuthenticator(configuration);

                target.LogException(new Exception("Sample"));
                var result = target.InternalLogger;

                Assert.IsNotNull(result);
            }