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; }
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>(); }