Esempio n. 1
0
 public SchoolController(ISchoolService schoolService,
                         IUserService userService, IPaymentService paymentService)
 {
     _schoolService  = schoolService;
     _userService    = userService;
     _paymentService = paymentService;
 }
Esempio n. 2
0
 public RelatedEntitiesValidator(ITeacherService teacherService, IPupilService pupilService,
                                 ISchoolService schoolService)
 {
     _teacherService = teacherService;
     _pupilService   = pupilService;
     _schoolService  = schoolService;
 }
Esempio n. 3
0
 public LoginController(IUserService UserService, IMessagesService MessagesService, ISchoolService SchoolService)
     : base()
 {
     this._UserService = UserService;
     this._MessagesService = MessagesService;
     this._SchoolService = SchoolService;
 }
 public UserController(JwtHeader header, ILoginService loginService, IUserService userService, ISchoolService schoolService)
 {
     _header        = header;
     _loginService  = loginService;
     _userService   = userService;
     _schoolService = schoolService;
 }
 public PaymentsController(IPaymentService paymentService, IOrderService orderService, ICustomerService customerService, ISchoolService schoolService)
 {
     this.paymentService  = paymentService;
     this.orderService    = orderService;
     this.customerService = customerService;
     this.schoolService   = schoolService;
 }
Esempio n. 6
0
 public DashboardModel(IElasticClient elasticClient, ISchoolService schoolService)
 {
     _elasticClient = elasticClient;
     _schoolService = schoolService;
     SchoolsData    = new List <Schools>();
     Dashboards     = new Dictionary <string, decimal>();
 }
Esempio n. 7
0
		public UserController(ApplicationUserManager userManager, IThemeService themeService, IUserService userService, ISchoolService schoolService)
		{
			UserManager = userManager;
			_themeService = themeService;
			_userService = userService;
			_schoolService = schoolService;
		}
Esempio n. 8
0
 public HomeController(IStudentService StudentsService, ILookupService lookupService, ISchoolService SchoolService)
     : base()
 {
     this._StudentService = StudentsService;
     this._lookupService = lookupService;
     this._schoolService = SchoolService;
 }
Esempio n. 9
0
        public IHttpActionResult Index()
        {
            _schoolService = Ioc.Container.Resolve <ISchoolService>();
            var schools = _schoolService.GetAllSchools();

            return(Ok(schools));
        }
Esempio n. 10
0
 public SchoolController(
     ISchoolService schoolService,
     ILogger <BaseController> logger
     ) : base(logger)
 {
     this.SchoolService = schoolService;
 }
 public SchoolViewModel(ISchoolService schoolService)
 {
     _validator      = new ValidationPage();
     RegisterCommand = new Command(RegisterValidation);
     _schoolService  = schoolService;// new SchoolService();
     GetSchoolsDetails();
 }
 public OrdersController(IOrderService orderService, ICourseService courseService, ICustomerService customerService, ISchoolService schoolService)
 {
     this.orderService    = orderService;
     this.courseService   = courseService;
     this.customerService = customerService;
     this.schoolService   = schoolService;
 }
Esempio n. 13
0
 public CommentController(IPostsService postsService, UserManager <ApplicationUser> userManager, ISchoolService schoolService, ICommentsService commentsService)
 {
     this.userManager     = userManager;
     this.postsService    = postsService;
     this.schoolService   = schoolService;
     this.commentsService = commentsService;
 }
 public FeedbacksController(IFeedbackService feedbackService, IOrderService orderService, ICustomerService customerService, ISchoolService schoolService)
 {
     this.feedbackService = feedbackService;
     this.orderService    = orderService;
     this.customerService = customerService;
     this.schoolService   = schoolService;
 }
 public MenuFilterAttribute(ISchoolService schoolService, IMemoryCache icache,
                            ITeacherService teacherService)
 {
     _schoolService  = schoolService;
     _teacherService = teacherService;
     _cache          = icache;
 }
        public SchoolsController()
        {
            _schoolService = ServiceProxy.Create<ISchoolService>(
                new Uri("fabric:/TSLR/TSLR.SchoolService"));

            _schoolService = ServiceProxy.Create<ISchoolService>(new Uri("fabric:/TSLR/TSLR.SchoolService"));
        }
 public SchoolsController(
     ILogger <SchoolsController> logger,
     ISchoolService schoolService)
 {
     _logger        = logger;
     _schoolService = schoolService;
 }
Esempio n. 18
0
        public void Setup()
        {
            schoolRepository = new SchoolRepositoryMock();
            schoolRepository.schools.Clear();

            schoolService = new SchoolService(schoolRepository);
        }
Esempio n. 19
0
 public InstituteController(IInstituteService instituteService, IDistrictService districtService, IRoleSubModuleItemService roleSubModuleItemService, ISchoolService schoolService)
 {
     this.instituteService         = instituteService;
     this.districtService          = districtService;
     this.roleSubModuleItemService = roleSubModuleItemService;
     this.schoolService            = schoolService;
 }
 public SchoolController(
     ISchoolService schoolService,
     IMapper mapper)
 {
     this.schoolService = schoolService;
     this.mapper        = mapper;
 }
 public CoursesController(ICourseService courseService, ITrainerService trainerService, ICarService carService, ISchoolService schoolService)
 {
     this.courseService  = courseService;
     this.trainerService = trainerService;
     this.carService     = carService;
     this.schoolService  = schoolService;
 }
Esempio n. 22
0
 public ClassesController(IClassesService classesService, ISchoolService schoolService, ITeacherService teacherService, UserManager <ApplicationUser> userManager)
 {
     this.classesService = classesService;
     this.schoolService  = schoolService;
     this.teacherService = teacherService;
     this.userManager    = userManager;
 }
Esempio n. 23
0
 public UserController(JwtHeader header, IClusterClient client)
 {
     _header        = header;
     _userService   = client.GetGrain <IUserService>(0);
     _loginService  = client.GetGrain <ILoginService>(0);
     _schoolService = client.GetGrain <ISchoolService>(0);
 }
Esempio n. 24
0
        public async Task UpdateSchool_ShouldUpdateSchoolSuccessfully()
        {
            string errorMessagePrefix = "School UpdateAsync() does not work properly.";

            var context = NetBookDbContextInMemoryFactory.InitializeContext();

            await this.SeedData(context);

            this.schoolService = new SchoolService(context);

            var testSchool = new SchoolServiceModel
            {
                Name         = "TestName1",
                Town         = "Test1",
                Municipality = "Test1",
                Region       = "Test1",
                Area         = "Test1",
            };

            var actualResult = await this.schoolService.UpdateAsync(testSchool);

            Assert.True(actualResult, errorMessagePrefix);

            var updatedSchool = context.School.First();

            Assert.True(updatedSchool.Name == testSchool.Name, errorMessagePrefix + " " + "School Name is not set properly.");
            Assert.True(updatedSchool.Town == testSchool.Town, errorMessagePrefix + " " + "School Town is not set properly.");
            Assert.True(updatedSchool.Municipality == testSchool.Municipality, errorMessagePrefix + " " + "School Municipality is not set properly.");
            Assert.True(updatedSchool.Region == testSchool.Region, errorMessagePrefix + " " + "School Region is not set properly.");
            Assert.True(updatedSchool.Area == testSchool.Area, errorMessagePrefix + " " + "School Area is not set properly.");
        }
Esempio n. 25
0
 public UserController(IUploadService uploadService, IUserService userService, ILoginService loginService, ISchoolService schoolSevice, JwtHeader header)
 {
     _uploadService = uploadService;
     _userService   = userService;
     _loginService  = loginService;
     _schoolService = schoolSevice;
     _header        = header;
 }
Esempio n. 26
0
		public DashboardController(ApplicationUserManager userManager, IUserService userService, IApplicationService appService, IThemeService themeService, ISchoolService schoolService)
		{
			UserManager = userManager;
			_userService = userService;
			_appService = appService;
			_themeService = themeService;
			_schoolService = schoolService;
		}
Esempio n. 27
0
 public SearchController(ISchoolService schoolService, ISemesterSubjectService studySubjectService,
     IFileService fileService, IUserService userService)
 {
     _schoolService = schoolService;
     _studySubjectService = studySubjectService;
     _fileService = fileService;
     _userService = userService;
 }
Esempio n. 28
0
 public DutyEntryController(IDutyEntryService dutyEntryService, IDistrictService districtService, IRoleSubModuleItemService roleSubModuleItemService, IEmployeeAttendanceSummaryService employeeAttendanceSummaryService, ISchoolService schoolService)
 {
     this.dutyEntryService                 = dutyEntryService;
     this.districtService                  = districtService;
     this.roleSubModuleItemService         = roleSubModuleItemService;
     this.employeeAttendanceSummaryService = employeeAttendanceSummaryService;
     this.schoolService = schoolService;
 }
Esempio n. 29
0
 public StudentHandler(IUserChain next, ISchoolService schoolService, IStudentService studentService,
                       ILogger <StudentHandler> logger)
 {
     _next           = next;
     _schoolService  = schoolService;
     _studentService = studentService;
     _logger         = logger;
 }
Esempio n. 30
0
 public LessonsController(ILessonService lessonService, ICustomerService customerService, IOrderService orderService, ISchoolService schoolService, ITrainerService trainerService)
 {
     this.lessonService   = lessonService;
     this.customerService = customerService;
     this.orderService    = orderService;
     this.schoolService   = schoolService;
     this.trainerService  = trainerService;
 }
 public ExamsController(IExamService examService, IOrderService orderService, ICertificateService certificateService, ICustomerService customerService, ISchoolService schoolService)
 {
     this.examService        = examService;
     this.orderService       = orderService;
     this.certificateService = certificateService;
     this.customerService    = customerService;
     this.schoolService      = schoolService;
 }
Esempio n. 32
0
 public SchoolController(ISchoolService service, ILogger <SchoolController> logger, IHttpContextAccessor httpContextAccessor, ApplicationDbContext context)
 {
     _service             = service;
     _logger              = logger;
     _httpContextAccessor = httpContextAccessor;
     _context             = context;
     CurrentUser.Configure(_httpContextAccessor);
 }
 public StudentController(IStudentService studentService, ISchoolService schoolService, ISiteService siteService, IReportCardService reportCardService, ICommonService commonService)
 {
     _studentService    = studentService;
     _schoolService     = schoolService;
     _siteService       = siteService;
     _reportCardService = reportCardService;
     _commonService     = commonService;
 }
Esempio n. 34
0
 public MeController(IHostingEnvironment env, IOptions <JwtSettings> _jwtSettingsAccesser, IUserService userService, ILoginService loginService, ISchoolService schoolService)
 {
     _jwtSettings            = _jwtSettingsAccesser.Value;
     this.userService        = userService;
     this.hostingEnvironment = env;
     this.loginService       = loginService;
     this.schoolService      = schoolService;
 }
Esempio n. 35
0
 public SchoolController(ISchoolService schoolService,
                         IMapper <SchoolEntity, SchoolDTO> schoolMapper,
                         IMapper <SchoolEntity, SchoolDetailDTO> schoolDetailMapper)
 {
     this.schoolService      = schoolService;
     this.schoolMapper       = schoolMapper;
     this.schoolDetailMapper = schoolDetailMapper;
 }
Esempio n. 36
0
        public StudentListMarksCommand(ISchoolService service)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service cannot be null");
            }

            this.schoolService = service;
        }
 public ManagementController(ISemesterSubjectService studySubjectService, IGroupService groupService, IFileService fileService,
     IUserService userService, ISchoolService schoolService)
 {
     _semesterSubjectService = studySubjectService;
     _groupService = groupService;
     _schoolService = schoolService;
     _fileService = fileService;
     _userService = userService;
 }
Esempio n. 38
0
        public CreateTeacherCommand(ITeacherFactory factory, ISchoolService service)
        {
            if (factory == null)
            {
                throw new ArgumentNullException("factory cannot be null");
            }

            if (service == null)
            {
                throw new ArgumentNullException("service cannot be null");
            }

            this.factory = factory;
            this.schoolService = service;
        }
Esempio n. 39
0
 public FeeReceiptController(IFeeReceiptService FeeReceiptService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService,
     IStudentService StudentService, IFeeStructureService FeeStructureService,
     IFeeHeadOptionalEntryService FeeHeadOptionalEntryService, ISchoolService SchoolService)
     : base()
 {
     this._FeeReceiptService = FeeReceiptService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     this._BatchService = BatchService;
     this._FeeHeadService = FeeHeadService;
     this._StudentService = StudentService;
     this._feeStructureService = FeeStructureService;
     this._FeeHeadOptionalEntryService = FeeHeadOptionalEntryService;
     this._SchoolService = SchoolService;
 }
Esempio n. 40
0
		public SchoolController(ApplicationUserManager userManager, ISchoolService schoolService, IUserService userService)
		{
			UserManager = userManager;
			_schoolService = schoolService;
			_userService = userService;
		}
 public SchoolsController(ILogger logger, ISchoolService schoolService)
     : base(logger)
 {
     this.schoolService = schoolService;
 }
Esempio n. 42
0
 public CommonController(ISchoolService ObjService, IBoardService BoardService)
     : base()
 {
     this._SchoolService = ObjService;
     this._BoardService = BoardService;
 }
 public SchoolAPIController(ISchoolService schoolService)
 {
     _schoolService = schoolService;
 }
Esempio n. 44
0
 public SchoolController(ISchoolService ObjService, IBoardService BoardService)
     : base()
 {
     this._ObjService = ObjService;
     _BoardService = BoardService;
 }
 public LoggedInController(ISchoolService schoolService, IGroupService groupService)
 {
     _schoolService = schoolService;
     _groupService = groupService;
 }
 public UniversityController(ISchoolService schoolService, IFileService fileService)
 {
     _schoolService = schoolService;
     _fileService = fileService;
 }
Esempio n. 47
0
 public HomeController(ISchoolService schoolService)
 {
     _schoolService = schoolService;
 }
		// Initialization
		public ConnectionsController(ISchoolService schoolService)
		{
			this.schoolService = schoolService;
		}
Esempio n. 49
0
 public void Initialize()
 {
     _mockRepository = new Mock<IClassRepository>();
     _mockStudentRepository = new Mock<IStudentRepository>();
     _schoolService = new SchoolService(_mockRepository.Object, _mockStudentRepository.Object);
 }