English 中文(简体)
Mocking-Rhino Mocks
原标题:Session Mocking-Rhino Mocks

我愿利用Rhino Mocks在我的行动控制人员中 following弄如下:

Session["myId"] = someGuid.ToString();

我如何这样做?

谢谢。

最佳回答
问题回答

暂无回答




相关问题
How to unit test file permissions in NUnit?

I m trying to unit test file read operations. In this scenario I also need make sure that, if a particular user don t have read access he should get an exception... But somehow I m unable to get it ...

Rhino mocks - does this test look sensible?

I have just crafted the following test using Rhino mocks. Does my test look valid and make sense to those more experienced with mocking? I am a a little confused that I haven t had to use the ...

How to mock Add method of subsonic s SimpleRepository

I m trying to mock the Add method of subsonic SimpleRepository with Rihino mocks, I m using the IRepository Interface but I m new to mocking and dont know how to go from there, can this be done? ...

StrucutureMap RhinoMock Record/Playback, Example needed

I m looking for some examples on how to do the following Mock Tests using StructureMap or Unity with NUnit. I have the following code structure public interface IDAL { List<Model> Method1(...

How do I Fake UpdateModel for ASP.Net MVC?

I am trying to unit test a controller action that uses UpdateModel but I am not correctly mocking the HttpContext. I keep getting the following exception: System.InvalidOperationException: ...

热门标签