public void GeneratePdf_ConverterShouldConvertToBytes()
        {
            // Arrange
            var concert = new Event
            {
                Artist = "Test",
                Time   = DateTime.Now
            };
            var tickets = new List <Ticket>
            {
                new Ticket
                {
                    CreatedAt = DateTime.Now,
                    Number    = "1"
                }
            };
            var pdfConverter     = new DummyPdfConverter();
            var barcodeConverter = new DummyBarcodeConverter();
            var httpClient       = new DummyHttpClient();

            // Act
            var pdf   = new Pdf(concert, tickets, pdfConverter, barcodeConverter, httpClient);
            var bytes = pdf.ToBytes();

            // Assert
            Assert.Single(bytes);
            Assert.Equal(0, bytes[0]);
        }
        public TemplatesInBarcode()
        {
            var       template     = "Picture: %PICTURE% Number: %NUMBER%";
            var       ticketNumber = "111";
            Converter converter    = new DummyBarcodeConverter();

            Barcode = new TestBarcode(template, ticketNumber, converter);
        }