Exemplo n.º 1
0
            public void CreatesNoAuditByDefault()
            {
                var configuration = new ConfigurationBase();
                var target        = new SampleAuthenticator(configuration);

                target.AuditEvent(new Exception("Sample"), MvcTestBase.CreateRequestContext());
                var result = target.InternalAudit;

                Assert.IsNull(result);
            }
Exemplo n.º 2
0
            public void CreatesCallsAuditForSuccessByDefault()
            {
                var configuration = new ConfigurationBase
                {
                    Audit = new TypeConfiguration
                    {
                        TypeName = "Sem.Authentication.AppInfrastructure.DebugAudit, Sem.Authentication",
                    }
                };

                var target = new SampleAuthenticator(configuration);

                target.AuditEvent(MvcTestBase.CreateRequestContext());
                var result = target.InternalAudit;

                Assert.IsNotNull(result);
            }