Now that I pushed all the current changes out, we need to start thinking about the next version. I am planning on seeing what kind of syntax I can get from the language using C# 3.0. As of yet, I don't have any concrete ideas about what should be done, so I am here to solicit ideas about what you want.
Syntax suggestions, patches, comments, etc are all welcome.
I have a request but it is not C#3 related :-)
//This next line is the request
IServiceProvider mockServiceProvider =
mocks.CreatePassThrough<IServiceProvider>(MyServiceProviderInstance);
SetupResult.For(mockServiceProvider.GetService(typeof(IMyService))).Return(mockMyService);
The idea is that anything I have not setup a result for should be passed
onto MyServiceProviderInstance. Basically this will save me from having to
do a SetupResult.For for some 10 to 20 calls when all I want to do is to
mock one of them.
Pete
I have looked hard but can't find out how. The target object is an existing
instance of IServiceProvider, how can I create a partial mock that passes
everything through to that exact instance? The instance is important
because I am dealing with a specific cache etc.
Thanks
Pete