public void durably() { var router = new RabbitMqTopicRouter("numbers"); var configuration = new TopicRouterConfiguration <RabbitMqSubscriberConfiguration>(router, new JasperOptions().Endpoints); configuration.DurablyStoreAndForward(); router.Mode.ShouldBe(EndpointMode.Durable); }
public void durably() { var router = new RabbitMqTopicRouter("numbers"); var configuration = new TopicRouterConfiguration <RabbitMqSubscriberConfiguration>(router, new JasperOptions().Endpoints); configuration.Durably(); router.IsDurable.ShouldBeTrue(); }
public void inline() { var router = new RabbitMqTopicRouter("numbers"); router.Mode = EndpointMode.BufferedInMemory; var configuration = new TopicRouterConfiguration <RabbitMqSubscriberConfiguration>(router, new JasperOptions().Endpoints); configuration.SendInline(); router.Mode.ShouldBe(EndpointMode.Inline); }
public void lightweight() { var router = new RabbitMqTopicRouter("numbers"); router.IsDurable = true; var configuration = new TopicRouterConfiguration <RabbitMqSubscriberConfiguration>(router, new JasperOptions().Endpoints); configuration.Lightweight(); router.IsDurable.ShouldBeFalse(); }