/// <summary> /// Updates the heart beat for a record context /// </summary> /// <param name="context">The context.</param> public IHeartBeatStatus Send(IMessageContext context) { var command = new SendHeartBeatCommand((long)context.MessageId.Id.Value); var oDate = _commandHandler.Handle(command); return new HeartBeatStatus(new SqlServerMessageQueueId(command.QueueId), oDate); }
public void Create_Default() { const int id = 19334; var test = new SendHeartBeatCommand(id); Assert.Equal(id, test.QueueId); }