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.
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.
> 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.
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.
I would love it if Callbacks would just accept Actions instead of specific delegates, actually all the use of the delegates at the moment would be useful if i could just put in a lambda expression.
Cheers O
On 19/02/2008, Peter Morris <mrpmor...@gmail.com> wrote:
> 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.
> 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.
> I would love it if Callbacks would just accept Actions instead of specific > delegates, actually all the use of the delegates at the moment would be > useful if i could just put in a lambda expression.
> Cheers > O
> On 19/02/2008, Peter Morris <mrpmor...@gmail.com> wrote:
> > > You can do that right now with partial mocks.
> > 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.