public void BarCodeGeneratePdfFinishTest()
 {
     var pdfGenerator = new PdfGenerator();
     pdfGenerator.BarCodeGenerate("0000000000-0000");
     var result = pdfGenerator.PdfFinish();
     Assert.IsNotNull(result);
 }
 public void PdfInitFinishTest()
 {
     var consignment = this.fixture.Create<ConsignmentBusinessModel>();
     var item = this.fixture.Create<BookBusinessModel>();
     var pdfGenerator = new PdfGenerator();
     pdfGenerator.PdfInit(item, consignment);
     var result = pdfGenerator.PdfFinish();
     Assert.IsNotNull(result);
 }
        public void PdfInitTest()
        {
           var consignment = this.fixture.Create<ConsignmentBusinessModel>();
            var item = this.fixture.Create<BookBusinessModel>();
            var pdfGenerator = new PdfGenerator();
            pdfGenerator.PdfInit(item, consignment);
            Assert.IsTrue(true);

        }
        public MemoryStream GetPdfByInventoryNumber(string number)
        {
            var inventory = this.inventoryFacade.GetInventoryByNumber(number);
            if (inventory == null)
            {
                return null;
            }

            var pdfGenerator = new PdfGenerator();
            pdfGenerator.PdfInit(inventory.Item, inventory.Consignment);
            pdfGenerator.BarCodeGenerate(inventory.Number);


            return pdfGenerator.PdfFinish();
        }
 public void PdfFinishTest()
 {
     var pdfGenerator = new PdfGenerator();
     var result = pdfGenerator.PdfFinish();
     Assert.IsNull(result);
 }
 public void BarCodeGenerateTest()
 {
    var pdfGenerator = new PdfGenerator();
     pdfGenerator.BarCodeGenerate("0000000000-0000");
     Assert.IsTrue(true);
 }
        public MemoryStream GetPdfByConsignmentNumber(int number)
        {
            var consignment = this.consignmentFacade.GetConsignmentByNumber(number);
            if (consignment == null)
            {
                return null;
            }

            var pdfGenerator = new PdfGenerator();
            pdfGenerator.PdfInit(consignment.Item, consignment);
            foreach (var inv in consignment.Inventories)
            {
                pdfGenerator.BarCodeGenerate(inv.Number);
            }

            return pdfGenerator.PdfFinish();
        }