public void CreateCommandShouldSaveQRCodePNG() { var createCommand = new CreateCommand(qrCodeService); createCommand.Message = "message"; createCommand.OutputType = OutputType.PNG; createCommand.OnExecute(commandLineApplication); A.CallTo(() => qrCodeService.SavePngQRCode(A <string> .Ignored, createCommand.Message)) .MustHaveHappened(); }
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(); }