public void Given_command_server_runnig()
 {
     _commandBroker = new NullCommandBroker();
     var instance = new CommandsService(new ServerContext
     (
         registry: new ReflectionCommandRegistry(typeof(__SampleCommandsMarker).Assembly),
         broker: _commandBroker
     ));
     var config = ConfigurationHelper.CreateConfiguration(instance);
     _host = new HttpServiceHost(typeof(CommandsService), config, new Uri(URL));
     _host.Open();
 }
        public void Given_command_server_runnig()
        {
            _commandBroker = new NullCommandBroker();

            var config = ZazServer.ConfigureAsSelfHosted(URL, new ServerConfiguration
            {
                Registry = new ReflectionCommandRegistry(typeof(__SampleCommandsMarker).Assembly),
                Broker = _commandBroker,
            });

            using (var host = new HttpSelfHostServer(config))
            {
                host.OpenAsync().Wait();

                var bus = new ZazClient(URL);
                bus.PostAsync(new HugeFoo
                {
                    Data = new String('a', 2097152)
                }).Wait();
            }
        }