Ejemplo n.º 1
0
        public TextSearchResultsWithOptionsTest()
        {
            String dir = Environment.GetEnvironmentVariable("GC_LIBRARY_TEST", EnvironmentVariableTarget.User);

            VALID_SETUP = new GC.GoogleCloudClassSetup(dir + "\\APIKEY.txt");

            placesSearch = new PlacesSearch(VALID_SETUP);
        }
Ejemplo n.º 2
0
        public PlacesDetailWithOptionsTest()
        {
            String dir = Environment.GetEnvironmentVariable("GC_LIBRARY_TEST", EnvironmentVariableTarget.User);

            VALID_SETUP   = new GC.GoogleCloudClassSetup(dir + "\\APIKEY.txt");
            INVALID_SETUP = new GC.GoogleCloudClassSetup(dir + "\\INVALID_APIKEY.txt");

            placesDetail = new PlacesDetail(VALID_SETUP);
        }
        public NearbySearchAdditionalResultsTest()
        {
            String dir = Environment.GetEnvironmentVariable("GC_LIBRARY_TEST", EnvironmentVariableTarget.User);

            VALID_SETUP   = new GC.GoogleCloudClassSetup(dir + "\\APIKEY.txt");
            INVALID_SETUP = new GC.GoogleCloudClassSetup(dir + "\\INVALID_APIKEY.txt");

            placesSearch = new PlacesSearch(VALID_SETUP);
        }
Ejemplo n.º 4
0
        public VideoAnnotationMultipleDetectionsTest()
        {
            String dir = Environment.GetEnvironmentVariable("GC_LIBRARY_TEST", EnvironmentVariableTarget.User);

            VALID_SETUP   = new GC.GoogleCloudClassSetup(dir + "\\APIKEY.txt");
            INVALID_SETUP = new GC.GoogleCloudClassSetup(dir + "\\INVALID_APIKEY.txt");

            videoIntelligence = new VideoIntelligence(VALID_SETUP);
        }
Ejemplo n.º 5
0
        public AnnotateTextTest()
        {
            String dir = Environment.GetEnvironmentVariable("GC_LIBRARY_TEST", EnvironmentVariableTarget.User);

            VALID_SETUP         = new GC.GoogleCloudClassSetup(dir + "\\APIKEY.txt");
            INVALID_SETUP       = new GC.GoogleCloudClassSetup(dir + "\\INVALID_APIKEY.txt");
            VALID_FILE_LOCATION = dir + "\\SampleDoc.txt";
            nlIntelligence      = new NaturalLanguageIntelligence(VALID_SETUP);
        }
        public FindPlacesUsingTextQueryTest()
        {
            String dir = Environment.GetEnvironmentVariable("GC_LIBRARY_TEST", EnvironmentVariableTarget.User);

            VALID_SETUP   = new GC.GoogleCloudClassSetup(dir + "\\APIKEY.txt");
            INVALID_SETUP = new GC.GoogleCloudClassSetup(dir + "\\INVALID_APIKEY.txt");

            placesSearch = new PlacesSearch(VALID_SETUP);
        }
        public AnnotateImagesTest()
        {
            String dir = Environment.GetEnvironmentVariable("GC_LIBRARY_TEST", EnvironmentVariableTarget.User);

            VALID_SETUP   = new GC.GoogleCloudClassSetup(dir + "\\APIKEY.txt");
            INVALID_SETUP = new GC.GoogleCloudClassSetup(dir + "\\INVALID_APIKEY.txt");

            imageIntelligence = new ImageIntelligence(VALID_SETUP);
        }
        public PlacesPhotosTest()
        {
            String dir = Environment.GetEnvironmentVariable("GC_LIBRARY_TEST", EnvironmentVariableTarget.User);

            VALID_SETUP   = new GC.GoogleCloudClassSetup(dir + "\\APIKEY.txt");
            INVALID_SETUP = new GC.GoogleCloudClassSetup(dir + "\\INVALID_APIKEY.txt");

            INVALID_FILE_LOCATION        = dir + "INVALID_FILE_LOCATION\\photo.jpg";
            VALID_FILE_LOCATION          = dir + "\\placesPhoto.jpg";
            EDITABLE_VALID_FILE_LOCATION = dir + "placesPhoto";

            placesPhotos = new PlacesPhotos(VALID_SETUP);
        }