public void GetGenericConsumerQueueNameWithGroup() { var conventions = new RabbitMqConventions(new StreamFlowOptions()); var queueName = conventions.GetQueueName(typeof(PingRequest), typeof(PingRequestGenericConsumer <GenericSample <int> >), "group"); _debug.WriteLine(queueName); Assert.Equal("PingRequest:PingRequestGenericConsumer<GenericSample<Int32>>:group", queueName); }
public void GetGenericConsumerQueueName() { var conventions = new RabbitMqConventions(new StreamFlowOptions()); var queueName = conventions.GetQueueName(typeof(PingRequest), typeof(PingRequestGenericConsumer <Sample>), null); _debug.WriteLine(queueName); Assert.Equal("PingRequest:PingRequestGenericConsumer<Sample>", queueName); }
public void GetGenericConsumerQueueNameWithServiceId() { var conventions = new RabbitMqConventions(new StreamFlowOptions { ServiceId = "service" }); var queueName = conventions.GetQueueName(typeof(PingRequest), typeof(PingRequestGenericConsumer <GenericSample <int> >), null); _debug.WriteLine(queueName); Assert.Equal("PingRequest:PingRequestGenericConsumer<GenericSample<Int32>>:service", queueName); }