Example #1
0
 public PropertyService(IMapper mapper, IPropertyRepository repository, IClassRepository classRepository, IUnitOfWork <CodeGeneratorDbContext> uow)
 {
     _mapper          = mapper;
     _repository      = repository;
     _classRepository = classRepository;
     _uow             = uow;
 }
 public StronglyTypedObjectMapper(IRequestHandler requestHandler)
 {
     this.requestHandler             = requestHandler;
     this.classRepository            = this.requestHandler.Storage.GetRepository <IClassRepository>();
     this.objectRepository           = this.requestHandler.Storage.GetRepository <IObjectRepository>();
     this.serializedObjectRepository = this.requestHandler.Storage.GetRepository <ISerializedObjectRepository>();
 }
 public GetFieldRunnable(IClassRepository repository, ClassInfo classInfo, Instruction instruction, BlockDecomposer block)
 {
     this.repository = repository;
     this.classInfo = classInfo;
     this.instruction = instruction;
     this.block = block;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SpeciesController" /> class.
 /// </summary>
 /// <param name="classRepository">The class repository.</param>
 /// <param name="skillRepository">The skill repository.</param>
 public SkillController(
     IClassRepository classRepository,
     ISkillRepository skillRepository)
 {
     SkillRepository = skillRepository;
     ClassRepository = classRepository;
 }
 public StudentEvaluationService(IStudentRepository studentRepository, IClassRepository classRepository,
                                 IStudentClassEvaluationRepository evaluationRepository)
 {
     this.studentRepository    = studentRepository;
     this.classRepository      = classRepository;
     this.evaluationRepository = evaluationRepository;
 }
Example #6
0
 public PropertyService(IMapper mapper, IPropertyRepository repository, IClassRepository classRepository, CodeGeneratorDbContext dbContext)
 {
     _mapper          = mapper;
     _repository      = repository;
     _classRepository = classRepository;
     _dbContext       = dbContext;
 }
Example #7
0
 public void TearDown()
 {
     _classRepositoryMock = null;
     _unitOfWorkMock      = null;
     _classesController   = null;
     _classes             = null;
 }
Example #8
0
 public ClassManager(IClassRepository classRepository, IClassLanguageRepository classLanguageRepository, IEntityFrameworkCoreUnitOfWork unitOfWork, IMapper mapper)
 {
     _classRepository         = classRepository;
     _classLanguageRepository = classLanguageRepository;
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SpeciesController" /> class.
 /// </summary>
 /// <param name="classRepository">The class repository.</param>
 /// <param name="skillRepository">The skill repository.</param>
 public SkillController(
     IClassRepository classRepository,
     ISkillRepository skillRepository)
 {
     SkillRepository = skillRepository;
     ClassRepository = classRepository;
 }
 public ModelPropertyService(IMapper mapper, IClassRepository classRepository, IModelPropertyRepository repository, IPropertyRepository propertyRepository)
 {
     _mapper             = mapper;
     _classRepository    = classRepository;
     _repository         = repository;
     _propertyRepository = propertyRepository;
 }
Example #11
0
        public FrmMainTeacher(
            IGradeService gradeService,
            IComboBoxHelperService comboBoxHelperService,
            IUserService userService,
            IUserRepository userRepository,
            IParentRepository parentRepository,
            ITeacherRepository teacherRepository,
            IStudentRepository studentRepository,
            IMessageRepository messageRepository,
            IClassRepository classRepository,
            IGradesTabService gradesTabService,
            ITeacherService teacherService,
            IMessagesTabService messagesTabService)
        {
            _comboBoxHelperService = comboBoxHelperService;
            _userService           = userService;
            _userRepository        = userRepository;
            _parentRepository      = parentRepository;
            _teacherRepository     = teacherRepository;
            _studentRepository     = studentRepository;
            _messageRepository     = messageRepository;
            _classRepository       = classRepository;
            _gradesTabService      = gradesTabService;
            _teacherService        = teacherService;
            _messagesTabService    = messagesTabService;

            InitializeComponent();

            Initialize();
        }
 public ExhibitorService(IExhibitorRepository exhibitorRepository, IAddressRepository addressRepository,
                         IExhibitorHorseRepository exhibitorHorseRepository, IHorseRepository horseRepository,
                         IGroupExhibitorRepository groupExhibitorRepository, IGlobalCodeRepository globalCodeRepository,
                         IExhibitorClassRepository exhibitorClassRepository, IClassRepository classRepository,
                         ISponsorExhibitorRepository sponsorExhibitorRepository, ISponsorRepository sponsorRepository,
                         IScanRepository scanRepository, IExhibitorPaymentDetailRepository exhibitorPaymentDetailRepository,
                         IApplicationSettingRepository applicationRepository, IEmailSenderRepository emailSenderRepository,
                         IClassSponsorRepository classSponsorRepository, IMapper mapper, IStallAssignmentRepository stallAssignmentRepository)
 {
     _exhibitorRepository              = exhibitorRepository;
     _addressRepository                = addressRepository;
     _exhibitorHorseRepository         = exhibitorHorseRepository;
     _horseRepository                  = horseRepository;
     _groupExhibitorRepository         = groupExhibitorRepository;
     _globalCodeRepository             = globalCodeRepository;
     _exhibitorClassRepository         = exhibitorClassRepository;
     _classRepository                  = classRepository;
     _sponsorExhibitorRepository       = sponsorExhibitorRepository;
     _sponsorRepository                = sponsorRepository;
     _scanRepository                   = scanRepository;
     _exhibitorPaymentDetailRepository = exhibitorPaymentDetailRepository;
     _applicationRepository            = applicationRepository;
     _emailSenderRepository            = emailSenderRepository;
     _classSponsorRepository           = classSponsorRepository;
     _mapper       = mapper;
     _mainResponse = new MainResponse();
     _stallAssignmentRepository = stallAssignmentRepository;
 }
Example #13
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context = context;
     Students = new StudentRepository(_context);
     Classes  = new ClassRepository(_context);
     Photos   = new PhotoRepository(_context);
 }
Example #14
0
        public DbUnit(MySQLContext db, IAuditoriumRepository auditoriumRepository, IAuditoriumImgRepository auditoriumImgRepository,
                      IClassRepository classRepository, IClassImgRepository classImgRepository, IFamilyRepository familyRepository,
                      IFamilyMemberRepository familyMemberRepository, ILessonRepository lessonRepository, ILessonDurationRepository lessonDurationRepository,
                      IPersonalDataRepository personalDataRepository, IPersonalImgRepository personalImgRepository, IProgressRepository progressRepository,
                      IScheduleRepository scheduleRepository, ISchoolRepository schoolRepository, IStudentRepository studentRepository,
                      ITeacherRepository teacherRepository, IUserAccountRepository userAccountRepository, IHomeworkRepository homeworkRepository)
        {
            this.db = db;

            AuditoriumRepository     = auditoriumRepository;
            AuditoriumImgRepository  = auditoriumImgRepository;
            ClassRepository          = classRepository;
            ClassImgRepository       = classImgRepository;
            HomeworkRepository       = homeworkRepository;
            FamilyRepository         = familyRepository;
            FamilyMemberRepository   = familyMemberRepository;
            LessonDurationRepository = lessonDurationRepository;
            LessonRepository         = lessonRepository;
            PersonalDataRepository   = personalDataRepository;
            PersonalImgRepository    = personalImgRepository;
            ProgressRepository       = progressRepository;
            ScheduleRepository       = scheduleRepository;
            SchoolRepository         = schoolRepository;
            StudentRepository        = studentRepository;
            TeacherRepository        = teacherRepository;
            UserAccountRepository    = userAccountRepository;
        }
Example #15
0
 public ScraperService(IScraperRepository scraperRepository, IClassroomRepository classroomRepository, IClassRepository classRepository, IBookingRepository bookingRepository)
 {
     ScraperRepository   = scraperRepository;
     ClassroomRepository = classroomRepository;
     ClassRepository     = classRepository;
     BookingRepository   = bookingRepository;
 }
Example #16
0
 public WebScraper(IClassroomRepository classroomRepository, IBookingRepository bookingRepository, IClassRepository classRepository, IScraperRepository scraperRepository)
 {
     ClassroomRepository = classroomRepository;
     BookingRepository   = bookingRepository;
     ClassRepository     = classRepository;
     ScraperRepository   = scraperRepository;
 }
Example #17
0
 public ClassService(IClassRepository classRepository,
                     ISpecializedRepository ispecializedRepository,
                     IEducationProgramRepository iEducationProgramRepository)
 {
     _classRepository             = classRepository;
     _ispecializedRepository      = ispecializedRepository;
     _iEducationProgramRepository = iEducationProgramRepository;
 }
 public MetricComputer(IClassRepository classRepository, Stream err,
                       WhiteList whitelist, int recordingDepth)
 {
     this.classRepository = classRepository;
     this.err = err;
     this.whitelist = whitelist;
     this.recordingDepth = recordingDepth;
 }
 public PopulationRepository(AppDbContext context,
                             IClassRepository classRepository,
                             IScheduleRepository scheduleRepository)
 {
     _context            = context;
     _classRepository    = classRepository;
     _scheduleRepository = scheduleRepository;
 }
 public StudentsController(IOptions<RedisConfig> redisConfig, ILogger<StudentsController> logger)
 {
     String redisConnection = redisConfig.Value.RedisConnection;
     _logger = logger;
     _logger.LogCritical("logging redis connection: " + redisConnection);
     _studentRepository = new StudentRepository(ConnectionMultiplexer.Connect(redisConnection).GetDatabase(0));
     _classRepository = new ClassRepository(ConnectionMultiplexer.Connect(redisConnection).GetDatabase(0));
 }
Example #21
0
 public ClassService(IMapper mapper, IClassRepository repository, IUnitOfWork <CodeGeneratorDbContext> uow, BaseEntityPropertyCollection baseEntityPropertyCollection, IPropertyRepository propertyRepository)
 {
     _mapper     = mapper;
     _repository = repository;
     _uow        = uow;
     _baseEntityPropertyCollection = baseEntityPropertyCollection;
     _propertyRepository           = propertyRepository;
 }
        public HomeController(IStudentRepository studentRepository,

                              IClassRepository classRepository)
        {
            this.studentRepository = studentRepository;

            this.classRepository = classRepository;
        }
Example #23
0
 public ClassService(IClassRepository classRepository, IStudentService studentService, ITeacherService teacherService, IStudentClassService studentClassService, ITeacherClassService teacherClassService)
 {
     _classRepository     = classRepository;
     _studentService      = studentService;
     _teacherService      = teacherService;
     _studentClassService = studentClassService;
     _teacherClassService = teacherClassService;
 }
Example #24
0
 public ClassController(
     IMapper mapper,
     IClassRepository classRepository
     )
 {
     _classRepository = classRepository;
     _mapper          = mapper;
 }
Example #25
0
 public frmClassTestSetting(IClassTestRepository classTestRepository, ISubjectRepository subjectRepository, IClassRepository classRepository, ITestRepository testRepository)
 {
     InitializeComponent();
     _classTestRepository = classTestRepository;
     _classRepository     = classRepository;
     _subjectRepository   = subjectRepository;
     _testRepository      = testRepository;
 }
Example #26
0
 public ClassDetailController(IClassRepository repository,
                              ILogger <ClassDetailController> logger,
                              IMapper mapper)
 {
     _repository = repository;
     _logger     = logger;
     _mapper     = mapper;
 }
        public ClassController(IClassRepository cr)
        {
            var client = new MongoClient("mongodb://localhost:27017");
            var db     = client.GetDatabase("deadline");

            collection = db.GetCollection <Class>("class");
            this.cr    = cr;
        }
Example #28
0
 public StudentPresenceService(IStudentRepository studentRepository, IStudentPresenceRepository studentPresenceRepository,
                               IClassRepository classRepository, IClassTimetableRepository classTimetableRepository)
 {
     this.studentRepository         = studentRepository;
     this.studentPresenceRepository = studentPresenceRepository;
     this.classRepository           = classRepository;
     this.classTimetableRepository  = classTimetableRepository;
 }
Example #29
0
 public HomeController(IClassRepository classRepository,
                       IUserRepository userRepository,
                       IUserManager userManager)
 {
     this.classRepository = classRepository;
     this.userRepository  = userRepository;
     this.userManager     = userManager;
 }
 public ObjectDirector(IRequestHandler requestHandler)
 {
     this.requestHandler         = requestHandler;
     this.classRepository        = this.requestHandler.Storage.GetRepository <IClassRepository>();
     this.memberRepository       = this.requestHandler.Storage.GetRepository <IMemberRepository>();
     this.propertyRepository     = this.requestHandler.Storage.GetRepository <IPropertyRepository>();
     this.localizationRepository = this.requestHandler.Storage.GetRepository <ILocalizationRepository>();
 }
Example #31
0
 public SchoolManagerDb(string connectionString)
 {
     _dbConnection = new SqlConnection(connectionString);
     _dbConnection.ConnectionString = connectionString;
     StudentRepository = new StudentRepository(_dbConnection);
     SchoolRepository  = new SchoolRepository(_dbConnection);
     ClassRepository   = new ClassRepository(_dbConnection);
 }
Example #32
0
 public ClassService(IMapper mapper, IClassRepository repository, BaseEntityPropertyCollection baseEntityPropertyCollection, IPropertyRepository propertyRepository, IClassMethodRepository classMethodRepository)
 {
     _mapper     = mapper;
     _repository = repository;
     _baseEntityPropertyCollection = baseEntityPropertyCollection;
     _propertyRepository           = propertyRepository;
     _classMethodRepository        = classMethodRepository;
 }
Example #33
0
 public RatingsController(IClassRepository cr, IUserRepository ur, IClassRatingRepository crr, IInstructorRatingRepository irr, IGymRepository gr)
 {
     classRepository            = cr;
     userRepository             = ur;
     classRatingRepository      = crr;
     instructorRatingRepository = irr;
     gymRepository = gr;
 }
Example #34
0
 public ProjectServices(IProjectRepository projectRepository, IMajorRepository majorRepository, IClassRepository classRepository, IPeriodRepository periodRepository, ISectionProjectRepository sectionProjectRepository)
 {
     _projectRepository        = projectRepository;
     _majorRepository          = majorRepository;
     _classRepository          = classRepository;
     _periodRepository         = periodRepository;
     _sectionProjectRepository = sectionProjectRepository;
 }
Example #35
0
        public static IClassRepository CreateClassRepository()
        {
            if (classRepository == null)
            {
                classRepository = new ClassRepository(LibrusFactory.DataContext);
            }

            return classRepository;
        }
Example #36
0
 public LibrusManager(IClassRepository classRepository, ISubjectRepository subjectRepository, ITimeTableRepository timeTableRepository,
     IStudentRepository studentRepository, IPresenceRepository presenceRepository)
 {
     this.classRepository = classRepository;
     this.subjectRepository = subjectRepository;
     this.timeTableRepository = timeTableRepository;
     this.studentRepository = studentRepository;
     this.presenceRepository = presenceRepository;
 }
        // TODO, refactoring 
        public MethodVisitor(IClassRepository repository, ClassInfo classInfo,
                                    string name, string descriptor, string signature, string[] exceptions,
                                    bool isStatic, bool isFinal, Visibility visibility)
        {
            Repository = repository;
            ClassInfo = classInfo;
            Name = name;
            Descriptor = descriptor;
            IsStatic = isStatic;
            IsFinal = isFinal;
            Visibility = visibility;

            var slot = 0;
            if (!IsStatic)
            {
                var thisType = ClrType.FromDescriptor(classInfo.Name);
                methodThis = new ParameterInfo("this", thisType);

                //slots.Add(slot++, methodThis);
                slot ++;
                parameters.Add(methodThis);
            }

            var rightBraceIndex = descriptor.IndexOf(')');
            var parameterString = descriptor.Substring(1, rightBraceIndex - 1);

            if (parameterString.Length > 0)
            {
                var parameters1 = parameterString.Split(',');

                foreach (var parameter in parameters1)
                {
                    var parameterType = new Type(parameter);

                    //ParameterInfo parameterInfo = new ParameterInfo("param_" + slot, parameterType);
                    var parameterInfo = new ParameterInfo("param_" + slot, parameterType);
                    parameters.Add(parameterInfo);
                    //slots.Add(slot++, parameterInfo);
                    slot++;
                    if (ClrType.IsDoubleSlot(parameterType))
                    {
                        slot++;
                    }
                }
            }
        }
 public ClassInfoVisitor(IClassRepository repository)
 {
     Repository = repository;
 }
 public ClassController(IClassRepository classRepository)
 {
     this.classRepository = classRepository;
 }
Example #40
0
 public ClassService(IValidationDictionary aValidationDictionary, IClassRepository aClassRepo)
 {
     theValidationDictionary = aValidationDictionary;
     theClassRepository = aClassRepo;
 }
 public StudentController(IStudentRepository studentRepository, IClassRepository classRepository)
 {
     this.studentRepository = studentRepository;
     this.classRepository = classRepository;
 }
 public SchoolService(IClassRepository classRepository, IStudentRepository studentRepository)
 {
     _classRepository = classRepository;
     _studentRepository = studentRepository;
 }
 public TextBookService(IValidationDictionary aValidationDictionary, ITextBookRepository aTextBookRepo, IClassRepository aClassRepo)
 {
     theValidationDictionary = aValidationDictionary;
     theTextBookRepo = aTextBookRepo;
     theClassRepo = aClassRepo;
 }
Example #44
0
 public ClassService(IClassRepository ClassRepository)
 {
     this._ClassRepository = ClassRepository;
 }
 public ModuleInfoVisitor(IClassRepository repository, string className)
 {
     this.className = className;
     Repository = repository;
 }
 public MetricComputerBuilder withClassRepository(IClassRepository repository)
 {
     this.repo = repository;
     return this;
 }