public void ShouldInsertNewQueueItemToDatabase()
        {
            _target.Send(Message);

            _queueRepository.Verify(_ => _.Insert(It.Is <Queue>(q =>
                                                                q.Body.Equals(Message) &&
                                                                q.Created.Equals(_currentDateUtc) &&
                                                                (q.IsProcessed == false) &&
                                                                (q.Processed == null) &&
                                                                (q.Type == Key.ToString()))));
        }
Ejemplo n.º 2
0
 public Task SendMessageAction(T message) => queueWriter.Send(message);