I'm new to Rhino Mocks and have been trying to figure out how to mock
an HttpSessionStateBase object.  Where I've been confused is how to
mock dictionary objects.  What I want to so is test that a class is
putting stuff into my HttpSessionStateBase object.  For example, I
have a method doing this:

public void SetAValue(HttpSessionStateBase session) {
    session["key"] = aValue;
}

public string GetAValue(HttpSessionStateBase session) {
    return session["key"];
}


I want to test that this "key" is being set.   I've gotten as far as
this:

            HttpSessionStateBase mockSession =
mockRepo.DynamicMock<HttpSessionStateBase>();

but can't figure out how to test that the value is being put in and is
being retrieve from the session object.

Can someone help me out?

Thanks,
Dave.

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