/// <summary> /// Create a new instance of this class /// </summary> /// <param name="view">The view to use</param> /// <param name="model">The model to use</param> public ProjectConfigurationController(IProjectConfigurationView view, ICalidusProjectModel model) { _model = model; _view = view; _view.IgnoreAssemblyFiles = _model.IgnoreAssemblyFiles; _view.IgnoreDesignerFiles = _model.IgnoreDesignerFiles; _view.IgnoreProgramFiles = _model.IgnoreProgramFiles; _view.IgnoreAssemblyFilesChanged += new EventHandler <CheckedEventArgs>(_view_IgnoreAssemblyFilesChanged); _view.IgnoreDesignerFilesChanged += new EventHandler <CheckedEventArgs>(_view_IgnoreDesignerFilesChanged); _view.IgnoreProgramFilesChanged += new EventHandler <CheckedEventArgs>(_view_IgnoreProgramFilesChanged); }
public override void SetUp() { base.SetUp(); _view = Mocker.DynamicMock <IProjectConfigurationView>(); _model = Mocker.DynamicMock <ICalidusProjectModel>(); Expect.Call(_model.IgnoreAssemblyFiles).Return(true).Repeat.Once(); Expect.Call(_model.IgnoreDesignerFiles).Return(true).Repeat.Once(); Expect.Call(_model.IgnoreProgramFiles).Return(true).Repeat.Once(); Expect.Call(_view.IgnoreAssemblyFiles = true).Repeat.Once(); Expect.Call(_view.IgnoreDesignerFiles = true).Repeat.Once(); Expect.Call(_view.IgnoreProgramFiles = true).Repeat.Once(); }