Example #1
0
 public PopulationAnalysisFieldListView()
 {
     InitializeComponent();
     _gridViewBinder = new GridViewBinder <PopulationAnalysisFieldDTO>(gridView);
     DragDropBinder  = new PopulationAnalysisFieldsDragDropBinder(_gridViewBinder);
     gridView.CustomDrawEmptyForeground += (o, e) => OnEvent(addMessageInEmptyArea, e);
 }
 public PopulationAnalysisFieldListPresenter(IPopulationAnalysisFieldListView view, IPopulationAnalysisFieldToPopulationAnalysisFieldDTOMapper mapper)
     : base(view)
 {
     _mapper         = mapper;
     AllowedType     = typeof(IStringValueField);
     _dragDropBinder = view.DragDropBinder;
     _dragDropBinder.FieldsDropped += fieldsMoved;
     Area = PivotArea.FilterArea;
 }
        protected override void Context()
        {
            _view           = A.Fake <IPopulationAnalysisFieldListView>();
            _mapper         = A.Fake <IPopulationAnalysisFieldToPopulationAnalysisFieldDTOMapper>();
            _dragDropBinder = A.Fake <IPopulationAnalysisFieldsDragDropBinder>();
            A.CallTo(() => _view.DragDropBinder).Returns(_dragDropBinder);

            sut = new PopulationAnalysisFieldListPresenter(_view, _mapper);
        }