Mock BusinessBase object

Mock BusinessBase object

Old forum URL: forums.lhotka.net/forums/t/7682.aspx


Lyynx posted on Friday, September 25, 2009

Hi all,

I'm using Rhinomocks for Silverlight to mock a class that inherits BusinessBase.

When I try to set any properties via
Expect.Call(summary.LastName).Return("mylastname");
for example, it throws an exception as below:
Type 'System.String' doesn't match the return type 'System.Boolean' for method 'BusinessBase.CanReadProperty(missing parameter);'

Has anyone done this before? I'm still finding my way with Rhinomocks and perhaps I'm using the wrong call to set up the mocked version of my class.

thanks in advance!
Stephen

Copyright (c) Marimer LLC