public void RegisterQueueItemProgress(QueueEventType eventType, QueueItemDTO latestItem) { QueueEventLogDTO eventLogItem = new QueueEventLogDTO { Message = string.Format("Queue Data Item {0} is {1}", latestItem.BadgeAwardId, eventType.ToString()), QueueEventCreated = DateTime.Now, QueueEventId = (int)eventType, BadgeAwardId = latestItem.BadgeAwardId }; _queueEventLogDAL.Add(eventLogItem); }
private static QueueEventLogDTO AddQueueEventLogRecord(IQueueEventLogDAL queueEventLogDAL, IQueueItemDAL queueItemDAL) { //Grab the top item QueueItemDTO queueItemDTO = queueItemDAL.Peek(); Assert.IsNotNull(queueItemDTO); QueueEventLogDTO queueEventLogItem = new QueueEventLogDTO { Message = "Test Message", QueueEventCreated = DateTime.Now, QueueEventId = 1, BadgeAwardId = queueItemDTO.QueueItemId }; QueueEventLogDTO addedItem = queueEventLogDAL.Add(queueEventLogItem); return addedItem; }
private static QueueEventLogDTO AddQueueEventLogRecord(IQueueEventLogDAL queueEventLogDAL, IQueueItemDAL queueItemDAL) { //Grab the top item QueueItemDTO queueItemDTO = queueItemDAL.Peek(); Assert.IsNotNull(queueItemDTO); QueueEventLogDTO queueEventLogItem = new QueueEventLogDTO { Message = "Test Message", QueueEventCreated = DateTime.Now, QueueEventId = 1, BadgeAwardId = queueItemDTO.QueueItemId }; QueueEventLogDTO addedItem = queueEventLogDAL.Add(queueEventLogItem); return(addedItem); }