public void Init() { _settingsView = MockRepository.GenerateMock <ILegacyClientSetupView>(); _settingsView.Stub(x => x.FindValidatingControls()).Return(new List <IValidatingControl>()); _networkOps = MockRepository.GenerateMock <INetworkOps>(); _messageBoxView = MockRepository.GenerateMock <IMessageBoxView>(); _folderBrowserView = MockRepository.GenerateMock <IFolderBrowserView>(); }
public void Init() { _settingsView = MockRepository.GenerateMock<ILegacyClientSetupView>(); _settingsView.Stub(x => x.FindValidatingControls()).Return(new List<IValidatingControl>()); _networkOps = MockRepository.GenerateMock<INetworkOps>(); _messageBoxView = MockRepository.GenerateMock<IMessageBoxView>(); _folderBrowserView = MockRepository.GenerateMock<IFolderBrowserView>(); }
public LegacyClientSetupPresenter(ILegacyClientSetupView settingsView, INetworkOps networkOps, IMessageBoxView messageBoxView, IFolderBrowserView folderBrowserView) { _settingsView = settingsView; _settingsView.AttachPresenter(this); _networkOps = networkOps; _messageBoxView = messageBoxView; _folderBrowserView = folderBrowserView; _validatingControls = _settingsView.FindValidatingControls(); }
public WebsiteDeployer(IPreferenceSet prefs, INetworkOps networkOps) { _prefs = prefs; _networkOps = networkOps; }