I download an employee's email into a table, I then take that collection of emails I just downloaded and run a bunch of rules on them.
e.g. if email from [email protected], route the email to folder1.
How could I write a unit test for this process?
Would I have to create a dummy collection of emails, and then right a rule for each one?
I have a hard time breaking the unit test out, I always want to include database procedures into the test which I know is wrong.