public void SetUp()
 {
     File.Delete(expectedFilePath);
     repository = new SettingsRepository();
     settings = new Dictionary<string, object>
         {
             { "stupid", (bool?)true },
             { "indent", (int?)4 }
         };
 }
Exemplo n.º 2
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;
     }
 }