Example #1
0
 public void Execute(IDataContext context, DelegateExecute nextExecute)
 {
     using (var form = new SettingsForm())
     {
         var repository = new SettingsRepository();
         var presenter = new SettingsController(repository, form);
         presenter.Initialize();
         if (form.ShowDialog() == DialogResult.OK)
             Settings.Values = presenter.Settings;
     }
 }
 public void SetUp()
 {
     repository = MockRepository.GenerateMock<ISettingsRepository>();
     view = MockRepository.GenerateMock<ISettingsView>();
     controller = new SettingsController(repository, view);
 }