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); }
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); }