Esempio n. 1
0
        public MatrixPanel(int currentNumber, int scrolX, int scrolY)
            : base()
        {
            this._connectionString        = ConfigurationManager.ConnectionStrings["SampleDataBase"].ConnectionString;
            this._sqlMatrixRepository     = new SqlMatrixRepository(this._connectionString);
            this._sqlPercentageRepository = new SqlPercentageRepository(this._connectionString);

            InitialiseComponents(currentNumber, scrolX, scrolY);
        }
 public MatrixCalculatorService(ILogger <MatrixCalculatorService> logger,
                                IOptions <CalculatorServiceOptions> options,
                                IDirectoryRepository directoryRepository,
                                IMatrixRepository matrixRepository,
                                ICalculator calculator)
 {
     _logger = logger;
     _directoryRepository = directoryRepository;
     _matrixRepository    = matrixRepository;
     _options             = options.Value;
     _calculator          = calculator;
 }
Esempio n. 3
0
        public ExecutionService(IValueComparer valueComparer, IFormulaRepository formulaRepository,
                                IArgumentRepository argumentRepository, IMatrixRepository matrixRepository)
        {
            Guard.AgainstNull(valueComparer, nameof(valueComparer));
            Guard.AgainstNull(formulaRepository, nameof(formulaRepository));
            Guard.AgainstNull(argumentRepository, nameof(argumentRepository));
            Guard.AgainstNull(matrixRepository, nameof(matrixRepository));

            _valueComparer      = valueComparer;
            _formulaRepository  = formulaRepository;
            _argumentRepository = argumentRepository;
            _matrixRepository   = matrixRepository;
        }
 public BeoordelingsService(IUnitOfWork uow,
                            IMatrixRepository matrixRepository,
                            IResultaatRepository resultaatRepository,
                            IBeoordelingsEngine beoordelingsEngine,
                            IGenericRepository <Rol> rolRepository,
                            IStudentService studentService,
                            IAdministratorService adminService)
 {
     this.uow = uow;
     this.matrixRepository    = matrixRepository;
     this.resultaatRepository = resultaatRepository;
     this.beoordelingsEngine  = beoordelingsEngine;
     this.rolRepository       = rolRepository;
     this.studentService      = studentService;
     this.adminService        = adminService;
 }
Esempio n. 5
0
 public MatrixService(IMatrixRepository matrixRepository)
 {
     this.matrixRepository = matrixRepository;
     this.random           = new Random();
 }
Esempio n. 6
0
 public MatrixbeheerService(IUnitOfWork uow, IMatrixRepository matrixrepository)
 {
     this.uow = uow;
     this.matrixrepository = matrixrepository;
 }