示例#1
0
        public void AddAuditLogToDb_ExpectedParameters_Ok()
        {
            auditLogDataAccess.Add(auditLog);

            AuditLog obtained = auditLogDataAccess.Get(auditLog.Id);

            Assert.AreEqual(auditLog, obtained);
        }
        public void CreateLog(string entityType, Guid?entityId, string executingUserId, ActionPerformed action)
        {
            AuditLog logEvent = new AuditLog(entityType, entityId, executingUserId, action);

            AuditLogDataAccess.Add(logEvent);
        }