I would like to do some unittesting of a method taking a document as argument.
If I was able to create a mock for the document it would make it much easier and I would be able to remove the dependency to the database. Are there any plans to create interfaces for the Document class? This would off course alse require the Content class to have an interface and so on . . .
Or does anybody have a good idea how to test such a method?
Interface for Document
I would like to do some unittesting of a method taking a document as argument.
If I was able to create a mock for the document it would make it much easier and I would be able to remove the dependency to the database. Are there any plans to create interfaces for the Document class? This would off course alse require the Content class to have an interface and so on . . .
Or does anybody have a good idea how to test such a method?
Cheers,
Joachim
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.