Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Joachim Andersen 38 posts 198 karma points
    Sep 27, 2012 @ 11:08
    Joachim Andersen
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft