18 references to KeyPropertyName
Microsoft.Extensions.VectorData.ConformanceTests (18)
ModelTests\DynamicModelTests.cs (18)
24(TKey)expectedRecord[KeyPropertyName]!, 35var ids = expectedRecords.Select(record => record[KeyPropertyName]!); 43received.Single(r => r[KeyPropertyName]!.Equals(record[KeyPropertyName])), 216[KeyPropertyName] = expectedKey, 235[KeyPropertyName] = existingRecord[KeyPropertyName], 241Assert.NotNull(await Collection.GetAsync((TKey)existingRecord[KeyPropertyName]!)); 244var received = await Collection.GetAsync((TKey)existingRecord[KeyPropertyName]!, new() { IncludeVectors = true }); 255[KeyPropertyName] = fixture.GenerateNextKey<TKey>(), 262[KeyPropertyName] = fixture.GenerateNextKey<TKey>(), 269var keys = newRecords.Select(record => record[KeyPropertyName]!).ToArray(); 291Assert.NotNull(await fixture.Collection.GetAsync((TKey)recordToRemove[KeyPropertyName]!)); 292await fixture.Collection.DeleteAsync((TKey)recordToRemove[KeyPropertyName]!); 293Assert.Null(await fixture.Collection.GetAsync((TKey)recordToRemove[KeyPropertyName]!)); 357Assert.Equal(expected[KeyPropertyName], actual[KeyPropertyName]); 392protected override string KeyPropertyName => DynamicModelTests<TKey>.KeyPropertyName;