Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Planning Rhino Mock 3.5 - The Lambda Edition
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ayende Rahien  
View profile  
 More options Feb 18 2008, 4:54 am
From: "Ayende Rahien" <aye...@ayende.com>
Date: Mon, 18 Feb 2008 11:54:30 +0200
Local: Mon, Feb 18 2008 4:54 am
Subject: Planning Rhino Mock 3.5 - The Lambda Edition

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Morris  
View profile  
 More options Feb 18 2008, 5:51 am
From: "Peter Morris" <mrpmor...@gmail.com>
Date: Mon, 18 Feb 2008 10:51:49 -0000
Local: Mon, Feb 18 2008 5:51 am
Subject: Re: [RhinoMocks] Planning Rhino Mock 3.5 - The Lambda Edition

> 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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ayende Rahien  
View profile  
 More options Feb 18 2008, 5:53 am
From: "Ayende Rahien" <aye...@ayende.com>
Date: Mon, 18 Feb 2008 12:53:41 +0200
Local: Mon, Feb 18 2008 5:53 am
Subject: Re: [RhinoMocks] Re: Planning Rhino Mock 3.5 - The Lambda Edition

You can do that right now with partial mocks.

On 2/18/08, Peter Morris <mrpmor...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Morris  
View profile  
 More options Feb 18 2008, 7:01 am
From: "Peter Morris" <mrpmor...@gmail.com>
Date: Mon, 18 Feb 2008 12:01:14 -0000
Local: Mon, Feb 18 2008 7:01 am
Subject: Re: [RhinoMocks] Re: Planning Rhino Mock 3.5 - The Lambda Edition

> 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.

Thanks

Pete


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Owen Evans  
View profile  
 More options Feb 18 2008, 6:47 pm
From: "Owen Evans" <owenmcev...@gmail.com>
Date: Tue, 19 Feb 2008 12:47:51 +1300
Local: Mon, Feb 18 2008 6:47 pm
Subject: Re: [RhinoMocks] Re: Planning Rhino Mock 3.5 - The Lambda Edition

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ayende Rahien  
View profile  
 More options Feb 18 2008, 7:29 pm
From: "Ayende Rahien" <aye...@ayende.com>
Date: Tue, 19 Feb 2008 02:29:04 +0200
Local: Mon, Feb 18 2008 7:29 pm
Subject: Re: [RhinoMocks] Re: Planning Rhino Mock 3.5 - The Lambda Edition

No, existing instances are not supported, but why can't you create an
instance through the mock repsitory?

On 2/18/08, Peter Morris <mrpmor...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ayende Rahien  
View profile  
 More options Feb 18 2008, 7:29 pm
From: "Ayende Rahien" <aye...@ayende.com>
Date: Tue, 19 Feb 2008 02:29:36 +0200
Local: Mon, Feb 18 2008 7:29 pm
Subject: Re: [RhinoMocks] Re: Planning Rhino Mock 3.5 - The Lambda Edition

That is because the support for those was added in 1.1 days. :-)

Yes, this is certainly a good point.

On 2/19/08, Owen Evans <owenmcev...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »