Hello,

I need to fill variable as a parameter to method.
            IEditPageView view =
MockRepository.GenerateMock<IEditPageView>();
            view.Expect(x => x.FillPage(page)); // this page variable
was created in another class I need to fill properties of variable for
this method.

When called method FillPage it must fill page properties. Real
FillPage method looks like
void FillPage(Page page)
{
page.Name = txtName.Text;
page.Author = txtAuthor.Text;
}

I don't know how I can mock this method.

Can anybody tell me if it possible to do such work with Rhino mocks.

Thanks,
Alexander.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rhinomocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to