public async void ImageCounts() { using (MockContext context = MockContext.Start(this.GetType())) { HttpMockServer.Initialize(this.GetType(), "ImageCounts", RecorderMode); using (var project = CreateTrainedImageClassificationProject()) { ICustomVisionTrainingClient client = BaseTests.GetTrainingClient(); var taggedImageCount = await client.GetTaggedImageCountAsync(project.ProjectId); Assert.Equal(10, taggedImageCount); var untaggedImageCount = await client.GetUntaggedImageCountAsync(project.ProjectId); Assert.Equal(0, untaggedImageCount); var iterationId = (await client.GetIterationsAsync(project.ProjectId))[0].Id; var imagePerfCount = await client.GetImagePerformanceCountAsync(project.ProjectId, iterationId); Assert.Equal(2, imagePerfCount); } } }