private void LoadData()
{
var testCount = 100;
var cardTable = new TemplateTable<string, CardDescription>();
for (int i = 0; i < 2; i++)
{
var delayedLoad = i == 1;
var tag = delayedLoad ? "(Delayed)" : "";
RunTest($"Load{tag} Json", testCount,
() =>
{
cardTable.Load(new TemplateTableJsonLoader<string, CardDescription>(
_json, delayedLoad));
});
RunTest($"Load{tag} BsonPack", testCount,
() =>
{
cardTable.Load(new TemplateTableBsonPackLoader<string, CardDescription>(
new MemoryStream(_bsonPack), delayedLoad));
});
RunTest($"Load{tag} ProtobufPack", testCount,
() =>
{
cardTable.Load(new TemplateTableProtobufPackLoader<string, CardDescription>(
new MemoryStream(_protobufPack), delayedLoad));
});
}
}