public void Should_Return_Valid_CommandResult_When_Valid_CMD_Command() { var command = new Command { CMDCommand = "ping www.google.com", MachineId = 1 }; var commandResult = _commandRepository.ExecuteCommand(command); Assert.Multiple(() => { Assert.IsNotNull(commandResult); StringAssert.Contains("Pinging www.google.com", commandResult); }); }
public string ExecuteCommand(Command command) { return(_commandRepository.ExecuteCommand(command)); }