Beispiel #1
0
        public void CreateVisionJobTest()
        {
            VisionSettings visionSettings = new VisionSettings();

            visionSettings.Vendor = VisionSettings.VendorEnum.GOOGLEVISION;
            List <VisionSettings.DetectionTypesEnum> detectionTypes = new List <VisionSettings.DetectionTypesEnum>();

            detectionTypes.Add(VisionSettings.DetectionTypesEnum.LABEL);
            visionSettings.DetectionTypes  = detectionTypes;
            visionSettings.StorageProvider = VisionSettings.StorageProviderEnum.SUPPLIER;

            visionJob = instance.CreateVisionJob(visionSettings);
            Assert.IsInstanceOf <VisionJob> (visionJob, "response is VisionJob");
            Assert.AreEqual("UPLOADRESOURCES", visionJob.State.ToString());
        }