public async Task GetGroup_ShouldReturnModelGroup() { var modelGroup = await _modelClient.GetGroup(_modelGroupId, default); modelGroup.Id.Should().Be(_modelGroupId); modelGroup.Name.Should().NotBeEmpty(); modelGroup.Status.Should().NotBe(ModelStatus.CREATING); var selectedModel = modelGroup.SelectedModel; selectedModel.Should().NotBeNull(); selectedModel.Id.Should().BeGreaterThan(0); selectedModel.Status.Should().NotBeEmpty(); selectedModel.TrainingProgressPercents.Should().BeGreaterOrEqualTo(0); }
public async Task SetUp() { var container = new IndicoTestContainerBuilder().Build(); _modelClient = container.Resolve <IModelClient>(); var dataSets = await container.Resolve <IDataSetClient>().ListFullAsync(1); _modelGroupId = dataSets.First().ModelGroups.First().Id; _modelId = (await _modelClient.GetGroup(_modelGroupId, default)).Id; _jobAwaiter = container.Resolve <IJobAwaiter>(); }