Client code for Chp 7 UoW
Hi Scott,
Great book. I have learnt so much from it.
Everytime I finish a chapter I try to create client code (console app) for the different patterns covered. I am on the unit of work pattern in chapter 7 but can't figure out how to call the accountservice Transfer method from Main().
Do I have to instatiante an AccountService object first? But its constructor requires IAccountRepository and IUnitOfWork passed in? How do I go about calling Transfer method from main.
Thanks again for the excellent book.
Although post is addressed to Scott, if anyone has any ideas how to go about with this please assist.
Last edited by mwiza; May 31st, 2011 at 11:19 AM..
Reason: Trying to make to get response from not just Scott
|