Beispiel #1
0
            public Isolated_Console_can_execute_commands()
            {
                var connector = new GridNodeConnector(new ServerConfiguration(),
                                                      new NodeConfiguration("Console", new NodeNetworkAddress()));

                connector.Connect().Wait();
                var command = new InflateNewBallonCommand(42, Guid.NewGuid().ToString());

                connector.Execute(command).Wait();

                Success = true;
            }
Beispiel #2
0
 public async Task Throws_exception_on_action_and_not_connected()
 {
     var connector = new GridNodeConnector(new ServerConfiguration(), new NodeConfiguration("Console", new NodeNetworkAddress()));
     await connector.Execute(new InflateNewBallonCommand(42, Guid.NewGuid().ToString()))
     .ShouldThrow <NotConnectedException>();
 }