public EndpointWithDisabledPublishing()
            {
                var template = new DefaultServer
                {
                    TransportConfiguration = new ConfigureEndpointAcceptanceTestingTransport(false, true)
                };

                EndpointSetup(
                    template,
                    (c, _) =>
                {
                    // DisablePublishing API is only available on the message-driven pub/sub transport settings.
                    var routingSettings = new RoutingSettings <AcceptanceTestingTransport>(c.GetSettings());
                    routingSettings.DisablePublishing();
                },
                    pm => pm.RegisterPublisherFor <TestEvent>(typeof(MessageDrivenPublisher)));
            }
            public Subscriber()
            {
                var defaultServer = new DefaultServer
                {
                    TransportConfiguration = new ConfigureEndpointAcceptanceTestingTransport(false, false)
                };

                EndpointSetup(defaultServer, (c, __) =>
                {
                    var routingSettings = new RoutingSettings <AcceptanceTestingTransport>(c.GetSettings());
                    routingSettings.DisablePublishing();
                }, p =>
                {
                    p.RegisterPublisherFor <ForbiddenEvent>(typeof(PublisherWithAuthorizer));
                    p.RegisterPublisherFor <AllowedEvent>(typeof(PublisherWithAuthorizer));
                });
            }