Constructing the test object using mock repository with parameters injected as mock

46 views
Skip to first unread message

BB

unread,
Nov 22, 2012, 7:45:47 AM11/22/12
to rhino...@googlegroups.com
Is there an mechanism where I can construct the object using mock repository without having to pass the parameters. I am expecting the parameters to be created as mock. 

In my test, I can get the mocked parameters injected from the repository, so I can setup appropriate expectation for the test case.

I have found myself updating lot of test cases when there is code change in class under test where constructor parameters are changed.
Reply all
Reply to author
Forward
0 new messages