public void WritingAnAuditMessageToTheDatabaseShouldStoreAnAuditMessage() { using (var source = new TestLoggingSource()) { var before = source.AuditLogQuery().Count(); var loggingService = new LoggingService(source); loggingService.LogToAudit("Test", "AuditTest"); var after = source.AuditLogQuery().Count(); Assert.IsTrue(after == before + 1); } }