public DefinedDatasetsTest()
        {
            _mapper                  = CoreServices.GetMapper();
            _repositoryMock          = new Mock <IDefinedDatasetRepository>();
            _datasetRepositoryMock   = new Mock <IDatasetRepository>();
            _fieldTypeRepositoryMock = new Mock <IFieldTypeRepository>();
            _mapperFactoryMock       = new Mock <IMapperFactory>();
            _unitOfWorkMock          = new Mock <IUnitOfWork>();
            _definedDatasets         = GenerateCustomDatasets();
            _definedDatasetValues    = GenerateDefinedDatasetValues(_definedDatasets);

            ConfigureDefinedDatasetRepositoryMock(_repositoryMock);
            ConfigureDatasetRepositoryMock(_datasetRepositoryMock);
            ConfigureFieldTypeRepositoryMock(_fieldTypeRepositoryMock);
            ConfigureMapperFactoryMock(_mapperFactoryMock);
            ConfigureUOWMock(_unitOfWorkMock);
            _definedDatasetService = new DefinedDatasetService(_unitOfWorkMock.Object, _repositoryMock.Object, _datasetRepositoryMock.Object, _fieldTypeRepositoryMock.Object, _mapperFactoryMock.Object);
        }
 public DefinedDatasetsController(IDefinedDatasetService definedDatasetService, IMapperFactory mapperFactory) :
     base(mapperFactory) => _definedDatasetService = definedDatasetService;