Пример #1
0
        public ControllerTests()
        {
            _data             = new Mock <IDataAccessLayer>();
            _attributeMapper  = new Mock <AttributeViewModelMapper>();
            _datasetMapper    = new Mock <IDatasetViewModelMapper>();
            _browseCubeMapper = new Mock <IBrowseCubeViewModelMapper>();
            _querier          = new Mock <IStarSchemaQuerier>();
            _graphService     = new Mock <IGraphService>();
            _treeBuilder      = new Mock <IDimensionTreeBuilder>();
            _arMapper         = new Mock <IAssociationRuleToViewMapper>();
            _processor        = new Mock <IAssociationRulesTaskProcessor>();
            _discretizator    = new Mock <IDataDiscretizator>();
            _taskMapper       = new Mock <IMiningTaskViewModelMapper>();
            _validations      = new Mock <IInputValidations>();
            _handler          = new Mock <IFileHandler>();
            _builder          = new Mock <IStarSchemaBuilder>();

            _home = new HomeController();

            _bce = new BrowseCubeControllerEngine(_data.Object, _datasetMapper.Object, _browseCubeMapper.Object,
                                                  _querier.Object, _graphService.Object, _treeBuilder.Object, _arMapper.Object);
            _bc = new BrowseCubeController(_bce);

            _mre = new MinedResultsControllerEngine(_data.Object, _querier.Object, _processor.Object, _taskMapper.Object, _discretizator.Object, _treeBuilder.Object);
            _mr  = new MinedResultsController(_mre, _bce, _validations.Object);

            _uce = new UploadControllerEngine(_data.Object, _datasetMapper.Object, _attributeMapper.Object, _handler.Object, _builder.Object, _querier.Object);
            _uc  = new UploadController(_uce, _validations.Object);
        }
Пример #2
0
 public UploadController(UploadControllerEngine controllerEngine, IInputValidations validations)
 {
     _controllerEngine = controllerEngine;
     _validations      = validations;
 }