I am new to testing and mocking. I’m trying to test a business logic class which performs calculations, calls into the DAL and updates the database, and manages transactions. I’m using mocks to do unit testing, but how does full integration testing fit into all of this. Do I basically have the exact same tests, but use the real DAL or do I do something completely different?
Share
Pretty much. The important thing to know is that unit testing (in TDD) is not much about testing as it’s about design. You create unit test to incorporate design decisions of every single component of code in an automated validation system; so that each part of your system conforms to its design. This way, you can rely on each component is not relying on unspecified features of other components.