static void Main(string[] args) { ShortUrlParser parser = new ShortUrlParser(); QRCodeParser imageParser = new QRCodeParser(); ParseQRCodeSample(imageParser, parser); }
static void ParseQRCodeSample(QRCodeParser imageParser, ShortUrlParser parser) { Console.WriteLine(parser.ParseShortUrl(imageParser.Parse(@"images\image1.png"))); Console.WriteLine(parser.ParseShortUrl(imageParser.Parse(@"images\image2.png"))); Console.WriteLine(parser.ParseShortUrl(imageParser.Parse(@"images\image3.png"))); Console.WriteLine(parser.ParseShortUrl(imageParser.Parse(@"images\image4.png"))); Console.WriteLine(parser.ParseShortUrl(imageParser.Parse(@"images\image5.png"))); Console.WriteLine(parser.ParseShortUrl(imageParser.Parse(@"images\image6.png"))); Console.WriteLine(parser.ParseShortUrl(imageParser.Parse(@"images\image7.png"))); Console.WriteLine(parser.ParseShortUrl(imageParser.Parse(@"images\image8.png"))); Console.WriteLine(parser.ParseShortUrl(imageParser.Parse(@"images\image9.png"))); }