Пример #1
0
        public void WriteQrCode(CommandLineApplication app)
        {
            var qrcode = _qrCodeService.GetAsciiQRCode(Message);

            app.Out.WriteLine("Your awesome QR Code is:\n");
            app.Out.WriteLine(qrcode);
        }
Пример #2
0
        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();
        }