public void Setup() { interactor = new DisassemblyViewInteractor(); sc = new ServiceContainer(); uiSvc = new Mock <IDecompilerShellUiService>(); dcSvc = new Mock <IDecompilerService>(); dlgFactory = new Mock <IDialogFactory>(); sc.AddService <IDecompilerShellUiService>(uiSvc.Object); sc.AddService <IDecompilerService>(dcSvc.Object); sc.AddService <IDialogFactory>(dlgFactory.Object); }
public void Setup() { repository = new MockRepository(); interactor = repository.Stub <DisassemblyViewInteractor>(); sc = new ServiceContainer(); uiSvc = repository.DynamicMock <IDecompilerShellUiService>(); dcSvc = repository.Stub <IDecompilerService>(); dlgFactory = repository.DynamicMock <IDialogFactory>(); sc.AddService <IDecompilerShellUiService>(uiSvc); sc.AddService <IDecompilerService>(dcSvc); sc.AddService <IDialogFactory>(dlgFactory); }