Hi SMiller,
Thanks for buying the book. The StructureMap code will still work, but here is the new syntax for you:
Old syntax:
ForRequestedType<IProductRepository().TheDefaultIs ConcreteType<ProductRepository();
New syntax:
For<IProductRepository>().Use<ProductRepository>() ;
Cheers
Scott
P.S. Would love to get your feedback on what you have read so far and when you finish the book.
|