コード例 #1
0
        public void SetUp()
        {
            mockery = new MockRepository();
            view    = mockery.DynamicMock <ISaveAsView>();

            sut = CreateSUT();
        }
コード例 #2
0
        public void AttachTo(ISaveAsPresenter presenterToDelegateWorkToo)
        {
            var saveFileDialog = new SaveFileDialog();

            if (saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                presenterToDelegateWorkToo.SaveToFileAt(saveFileDialog.FileName);
            }
        }