我通过执行以下操作使用FakeItEasy在MVC控制器中模拟了会话对象: var session = A.Fake<HttpSessionStateBase>(); A.CallTo(() => session["SomeKey"]).
確定! 回上一頁