defineIdentifierList<TValue> method
Creates a list of objects of a given type from a list of existing test data ids.
Implementation
List<TValue> defineIdentifierList<TValue>(Object id, List<String> listIds) {
assert(TValue != dynamic);
final result = <TValue>[];
for(final itemId in listIds) {
final found = find<TValue>(itemId);
assert(found != null);
result.add(found);
}
define(id, result);
return result;
}