コード例 #1
0
        protected override void beforeEach()
        {
            theContinuation = MockFor <AjaxContinuation>();

            theDictionary = new Dictionary <string, object>();
            theContinuation.Stub(x => x.ToDictionary()).Return(theDictionary);

            MockFor <IFubuRequest>().Stub(x => x.Find <AjaxContinuation>())
            .Return(new AjaxContinuation[] { theContinuation });

            ClassUnderTest.Invoke();
        }