public void DetectImageNoStore() { using (MockContext context = MockContext.Start(this.GetType())) { HttpMockServer.Initialize(this.GetType(), "DetectImageNoStore", RecorderMode); ICustomVisionPredictionClient client = GetPredictionClientClient(); using (FileStream stream = new FileStream(Path.Combine("TestImages", "test_image.jpg"), FileMode.Open)) { ImagePrediction results = client.DetectImageWithNoStore(ObjectDetectionProjectId, ObjDetectionPublishedName, stream); ValidateObjDetectionResults(results); } } }