Пример #1
0
 public void SetUp()
 {
     _testShow = new FakeJointShow(OrigName1);
     _fakeJointShowEditorWindow = new FakeJointShowEditorWindow(_testShow);
     _fakeMessageShower = new FakeMessageShower();
     _jointShowController = new JointShowEditorController(_fakeJointShowEditorWindow, _testShow, _fakeMessageShower);
 }
        public Tuple<IJointShowEditorWindow, JointShowEditorController> CreateEditorWindow(IJointShow showModel)
        {
            JointShowEditorWindow window = new JointShowEditorWindow(showModel);
            JointShowEditorController controller = new JointShowEditorController(window, showModel, new MessageShower());

            return new Tuple<IJointShowEditorWindow, JointShowEditorController>(window, controller);
        }
        public Tuple<IJointShowEditorWindow, JointShowEditorController> CreateEditorWindow(IJointShow showModel)
        {
            FakeWindow = new FakeJointShowEditorWindow(showModel);
            FakeMessageShower = new FakeMessageShower();
            FakeEditorController = new JointShowEditorController(FakeWindow, showModel, FakeMessageShower);

            return new Tuple<IJointShowEditorWindow, JointShowEditorController>(FakeWindow, FakeEditorController);
        }