public void SetUp() { mockery = new MockRepository(); view = mockery.DynamicMock <ISaveAsView>(); sut = CreateSUT(); }
public void AttachTo(ISaveAsPresenter presenterToDelegateWorkToo) { var saveFileDialog = new SaveFileDialog(); if (saveFileDialog.ShowDialog() == DialogResult.OK) { presenterToDelegateWorkToo.SaveToFileAt(saveFileDialog.FileName); } }