Esempio n. 1
0
        public void PutGenerateMultipleTest()
        {
            // Arrange
            var generatorParamsList = new GeneratorParamsList
            {
                BarcodeBuilders = new List <GeneratorParams>
                {
                    new GeneratorParams
                    {
                        TypeOfBarcode = EncodeBarcodeType.Code128,
                        Text          = "Hello world!"
                    }
                }
            };

            var request = new PutGenerateMultipleRequest(
                "Test_PutGenerateMultiple.png",
                generatorParamsList,
                folder: TempFolderPath
                );

            // Act
            ResultImageInfo response = _api.PutGenerateMultiple(request);

            // Assert
            Assert.True(response.FileSize > 0);
            Assert.True(response.ImageWidth > 0);
            Assert.True(response.ImageHeight > 0);
        }
Esempio n. 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="PutGenerateMultipleRequest"/> class.
 /// </summary>
 /// <param name="name">New filename</param>
 /// <param name="generatorParamsList">List of barcodes</param>
 /// <param name="format">Format of file</param>
 /// <param name="folder">Folder to place file to</param>
 /// <param name="storage">The storage name</param>
 public PutGenerateMultipleRequest(string name, GeneratorParamsList generatorParamsList, string format = null, string folder = null, string storage = null)
 {
     this.name = name;
     this.generatorParamsList = generatorParamsList;
     this.format  = format;
     this.folder  = folder;
     this.storage = storage;
 }
Esempio n. 3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="PostGenerateMultipleRequest"/> class.
 /// </summary>
 /// <param name="generatorParamsList">List of barcodes</param>
 /// <param name="format">Format to return stream in</param>
 public PostGenerateMultipleRequest(GeneratorParamsList generatorParamsList, string format = null)
 {
     this.generatorParamsList = generatorParamsList;
     this.format = format;
 }