public void WriteQrCode(CommandLineApplication app) { var qrcode = _qrCodeService.GetAsciiQRCode(Message); app.Out.WriteLine("Your awesome QR Code is:\n"); app.Out.WriteLine(qrcode); }
public void CreateCommandShouldWriteQRCodeOnCli() { var createCommand = new CreateCommand(qrCodeService); createCommand.Message = "message"; createCommand.OutputType = OutputType.CLI; createCommand.OnExecute(commandLineApplication); A.CallTo(() => qrCodeService.GetAsciiQRCode(createCommand.Message)) .MustHaveHappened(); }