public void Setup() { mr = new MockRepository(); var config = new FakeDecompilerConfiguration(); var host = new FakeDecompilerHost(); var sp = new ServiceContainer(); loader = mr.StrictMock<ILoader>(); sp.AddService(typeof(DecompilerEventListener), new FakeDecompilerEventListener()); loader.Replay(); decompiler = new TestDecompiler(loader, host, sp); loader.BackToRecord(); }
public void Setup() { mr = new MockRepository(); var config = new FakeDecompilerConfiguration(); var host = new FakeDecompilerHost(); var sp = new ServiceContainer(); loader = mr.StrictMock <ILoader>(); sp.AddService(typeof(DecompilerEventListener), new FakeDecompilerEventListener()); loader.Replay(); decompiler = new TestDecompiler(loader, host, sp); loader.BackToRecord(); }
public void Setup() { mr = new MockRepository(); fsSvc = mr.Stub<IFileSystemService>(); var cfgSvc = mr.Stub<IConfigurationService>(); var tlSvc = mr.Stub<ITypeLibraryLoaderService>(); var host = new FakeDecompilerHost(); sc = new ServiceContainer(); loader = mr.StrictMock<ILoader>(); sc.AddService<DecompilerEventListener>(new FakeDecompilerEventListener()); sc.AddService<IFileSystemService>(new FileSystemServiceImpl()); sc.AddService<DecompilerHost>(host); sc.AddService<IConfigurationService>(cfgSvc); sc.AddService<ITypeLibraryLoaderService>(tlSvc); loader.Replay(); decompiler = new TestDecompiler(loader, sc); loader.BackToRecord(); }
public void Setup() { mr = new MockRepository(); fsSvc = mr.Stub <IFileSystemService>(); var cfgSvc = mr.Stub <IConfigurationService>(); var tlSvc = mr.Stub <ITypeLibraryLoaderService>(); var host = new FakeDecompilerHost(); sc = new ServiceContainer(); loader = mr.StrictMock <ILoader>(); sc.AddService <DecompilerEventListener>(new FakeDecompilerEventListener()); sc.AddService <IFileSystemService>(new FileSystemServiceImpl()); sc.AddService <DecompilerHost>(host); sc.AddService <IConfigurationService>(cfgSvc); sc.AddService <ITypeLibraryLoaderService>(tlSvc); loader.Replay(); decompiler = new TestDecompiler(loader, sc); loader.BackToRecord(); }