I have class ClassX that has one ctor taking in two params ClassA and
ClassB. Inside ClassX, I have a method called Handle

public ClassY Handle(ClassA classA, ClassB classB)
{
   if (classB == null) throw Exception();
   string x = classB.PropertyA.GetID();

   return new ClassY(x);
}

ClassB is a class that has one ctor with 2 params that takes in
DateTime. I need to mock value x and assign some arbitrary value to
it. So in essense, I don't care what I pass in to Handle method. I do
care about local variable x and I'd like it to have a certain value.
I'm using RhinoAutoMocker from StructureMap but having difficulties.

Please help me out.

--

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