protected virtual void WriteCommLogEntry(int customerId, long?historyId, string host, string messageString, CommunicationLogEntryMessageQualifier direction, string trackingId, string serialNumber) { var service = ServiceUtilities.GetService <ICommunicationLogService>(context); var logEntry = new CommunicationLogEntry { CustomerId = customerId, HistoryId = historyId, Host = host, Message = messageString, MessageQualifier = direction, MessageTrackingId = (string.IsNullOrEmpty(trackingId)) ? historyId.GetValueOrDefault().ToString() : trackingId, SerialNumber = serialNumber }; logEntry.TimeStamp = DateTime.Now; service.CreateCommunicationLogEntry(logEntry); }
protected override void WriteCommLogEntry(int customerId, long?historyId, string host, string messageString, CommunicationLogEntryMessageQualifier direction, string trackingId, string serialNumber) { //ignore commlog in unittest }