I'm trying a library that acts like an object factory. It works with serialization, so it is possible to specify formula fields without DML, which is pretty handy with tests.
My issue is that I'm trying to write a class that requires the Quote type. The apex compiler throws me the following error when using
Invalid field class for SObject Quote
Account.class and even
QuoteLineItem.class work just fine. Any idea why? Is it not possible to get the quote type? Or is there another way of doing it?