public void Make_Data_And_Images_Merge_With_Template() { pdfConverter = serviceProvider.GetService <IPdfGenerator>(); var dictionary = BuildDictionaryForImage(); var templatePath = Path.Combine(Directory.GetCurrentDirectory(), "TemplateBoleto.pdf"); Assert.True(pdfConverter.AddRange(dictionary) .AddImage(new BarcodeGenerator().GenerateBarcode("03399000000000000009762852800000733268360101"), 50, 465) .PathFile(templatePath) .Generate() != null); }