public void Should_successfully_send_command()
 {
     var bus = new AdvancedCommandBus(URL);
     bus.PostScheduled(new CommandEnvelope
                   {
                       Key = "SampleCommands.PrintMessage"
                   }).Wait();
 }
        public void Should_successfully_send_command()
        {
            var bus = new AdvancedCommandBus(URL);
            bus.PostScheduled(new CommandEnvelope
                          {
                              Key = "HugeFoo",
                              Command = new HugeFoo
                              {
                                  Data = new String('a', 2097152)
                              }
                          }).Wait();

            _commandBroker.CommandsPosted.Should().NotBeEmpty();
        }
Ejemplo n.º 3
0
 public CommandBus(string url, ZazConfiguration configuration = null)
 {
     _underlineBus = new AdvancedCommandBus(url, configuration);
 }