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