예제 #1
0
 public void BeforeEachTest()
 {
     _sut = new FakeConfigurationService();
 }
예제 #2
0
파일: ItpForm.cs 프로젝트: killbug2004/reko
 private void preferencesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var dlg = new UserPreferencesDialog())
     {
         var sc = new ServiceContainer();
         var cfgSvc = new FakeConfigurationService();
         sc.AddService(typeof(IConfigurationService), cfgSvc);
         dlg.Services = sc;
         dlg.ShowDialog(this);
     }
 }