Example #1
0
 public void Setup()
 {
     sc   = new ServiceContainer();
     site = new FakeComponentSite(sc);
     site.AddService <IDecompilerService>(new Mock <IDecompilerService>().Object);
     site.AddService <IDecompilerShellUiService>(new Mock <IDecompilerShellUiService>().Object);
     site.AddService <IWorkerDialogService>(new Mock <IWorkerDialogService>().Object);
 }
Example #2
0
 public void Setup()
 {
     mr   = new MockRepository();
     sc   = new ServiceContainer();
     site = new FakeComponentSite(sc);
     site.AddService <IDecompilerService>(mr.Stub <IDecompilerService>());
     site.AddService <IDecompilerShellUiService>(mr.Stub <IDecompilerShellUiService>());
     site.AddService <IWorkerDialogService>(mr.Stub <IWorkerDialogService>());
 }