Hi,
I'm trying to figure out how to fake the custom table data similar to this.
var test = Fake<CustomTableItem, CustomTableItemProvider>();
It seems like CustomTableItem does not have a type info, so it cannot be fake. Am I doing it wrong? Is there an alternative way to fake it?
CustomTableItem
Thanks.
If you have custom table you need to generate code for it in Kentico admin under your particular custom table -> Code tab. This would give you a class inherited from CustomTableItem and I believe this is what you need to fake.
You can check this:
https://docs.kentico.com/k12/developing-websites/generating-classes-for-kentico-objects
https://docs.kentico.com/api12/content-management/custom-table-data
Please, sign in to be able to submit a new answer.