Пример #1
0
 public AssignmentsApiController(Club club, IAssignmentQuery assignmentQuery, IAssignmentService assignmentService, IMemberQuery memberQuery)
 {
     this.club              = club;
     this.assignmentQuery   = assignmentQuery;
     this.assignmentService = assignmentService;
     this.memberQuery       = memberQuery;
 }
 public AssignmentController(IAssignmentService assignmentService, UserManager <AppUser> userManager, ITeamService teamService, ICompanyService companyService)
 {
     _assignmentService = assignmentService;
     _userManager       = userManager;
     _teamService       = teamService;
     _companyService    = companyService;
 }
 public SpecialistController(ISpecialistService specialistService, IAssignorService assignorService, IAssignmentService assignmentService, IMapper mapper)
 {
     this.specialistService = specialistService;
     this.assignorService   = assignorService;
     this.assignmentService = assignmentService;
     this.mapper            = mapper;
 }
Пример #4
0
 public CoursesController(IAssignmentService assignmentService, ICourseService courseService, UserManager <User> userManager, IStudentsEnrolledInCourseService studentsEnrolledInCourseService)
 {
     this.assignmentService = assignmentService;
     this.courseService     = courseService;
     this.userManager       = userManager;
     this.studentsEnrolledInCourseService = studentsEnrolledInCourseService;
 }
Пример #5
0
 public SubmissionAPIShortMapper(IStudentAPIMapper studentAPIMapper, IAssignmentAPIMapper assignmentAPIMapper, IStudentService studentService, IAssignmentService assignmentService)
 {
     _iStudentService      = studentService;
     _iAssignmentService   = assignmentService;
     _iStudentAPIMapper    = studentAPIMapper;
     _iAssignmentAPIMapper = assignmentAPIMapper;
 }
Пример #6
0
 public UserManagementService(IUserService userService, IUserAssociationService userAssociationService, IAssignmentService assignmentService, ILocationService locationService)
 {
     m_userService = userService;
     m_userAssociationService = userAssociationService;
     m_assignmentService = assignmentService;
     m_locationService = locationService;
 }
Пример #7
0
 public ProfileController(IProjectService projectService, IAssignmentService assignmentService, ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     this._projectService = projectService;
     this._assignmentService = assignmentService;
     this._userManager = userManager;
     this._signInManager = signInManager;
 }
Пример #8
0
 public AssignmentAPIShortMapper(ILaboratoryAPIMapper laboratoryAPIMapper, ILaboratoryService laboratoryService, IAssignmentService assignmentService, IAssignmentMapper assignmentMapper)
 {
     _iAssignmentService   = assignmentService;
     _iAssignmentMapper    = assignmentMapper;
     _iLaboratoryService   = laboratoryService;
     _iLaboratoryAPIMapper = laboratoryAPIMapper;
 }
Пример #9
0
 public CreateController(IStudentService studentService, ITeacherService teacherService, ICourseService courseService, IAssignmentService assignmentService)
 {
     _studentService    = studentService;
     _teacherService    = teacherService;
     _courseService     = courseService;
     _assignmentService = assignmentService;
 }
Пример #10
0
 public ATaskController(UserManager <AppUser> userManager, IAssignmentService assignmentService, ITaskService taskService, ICompanyService companyService)
 {
     _userManager       = userManager;
     _assignmentService = assignmentService;
     _taskService       = taskService;
     _companyService    = companyService;
 }
Пример #11
0
 public ProfileController(IProjectService projectService, IAssignmentService assignmentService, ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     this._projectService    = projectService;
     this._assignmentService = assignmentService;
     this._userManager       = userManager;
     this._signInManager     = signInManager;
 }
Пример #12
0
        public FieldServiceApi(IAssignmentService assignmentService,
                               IOcupabilityService ocupabilityService,
                               IOcupabilityThroughTimeService ocupabilityThroughTimeService)
        {
            if (assignmentService == null)
            {
                throw new ArgumentNullException(nameof(assignmentService));
            }

            _assignmentService = assignmentService;

            if (ocupabilityService == null)
            {
                throw new ArgumentNullException(nameof(ocupabilityService));
            }

            _ocupabilityService = ocupabilityService;

            if (ocupabilityThroughTimeService == null)
            {
                throw new ArgumentNullException(nameof(ocupabilityThroughTimeService));
            }

            _ocupabilityThroughTimeService = ocupabilityThroughTimeService;
        }
Пример #13
0
 public SubmissionMapper(IAssignmentMapper assignmentMapper, IStudentMapper studentMapper, IStudentService studentService, IAssignmentService assignmentService)
 {
     _iAssignmentMapper  = assignmentMapper;
     _iStudentMapper     = studentMapper;
     _iStudentService    = studentService;
     _iAssignmentService = assignmentService;
 }
Пример #14
0
        public UnitTest1()
        {
            IServiceCollection services = new ServiceCollection();

            services.AddApplicationServices();
            services.AddTransient <AssignmentController>();
            services.AddTransient <InvoiceController>();
            services.AddTransient <EmployeeController>();
            services.AddTransient <CustomerController>();
            services.AddTransient <PaymentController>();
            services.AddTransient <PayoutController>();

            _autofacContainer = services.AddAutofacContainer();
            _serviceProvider  = new AutofacServiceProvider(_autofacContainer);

            _queryProcessor    = _serviceProvider.GetService <IQueryProcessor>();
            _assignmentService = _serviceProvider.GetService <IAssignmentService>();
            _paymentService    = _serviceProvider.GetService <IPaymentService>();

            _assignmentController = _serviceProvider.GetService <AssignmentController>();
            _invoiceController    = _serviceProvider.GetService <InvoiceController>();
            _employeeController   = _serviceProvider.GetService <EmployeeController>();
            _customerController   = _serviceProvider.GetService <CustomerController>();
            _paymentController    = _serviceProvider.GetService <PaymentController>();
            _payoutController     = _serviceProvider.GetService <PayoutController>();
        }
 public TaskController(
     IAssignmentService assignmentService,
     UserManager <AppUser> userManager,
     IWorkModelFactory workModelFactory) : base(userManager)
 {
     _assignmentService = assignmentService;
     _workModelFactory  = workModelFactory;
 }
Пример #16
0
 public UserAssignmentController(IAssignmentService iAllAssignments, IUserAssignmentService userAssignment,
                                 UserManager <User> userManager, Microsoft.Extensions.Configuration.IConfiguration configuration)
 {
     _Assignment     = iAllAssignments;
     _userManager    = userManager;
     _UserAssignment = userAssignment;
     _configuration  = configuration;
 }
Пример #17
0
 public TestRunController(ITestRunConverter testRunConverter,
                          ITestRunService testRunService,
                          IAssignmentService assignmentService)
 {
     _testRunConverter  = testRunConverter;
     _testRunService    = testRunService;
     _assignmentService = assignmentService;
 }
Пример #18
0
 public CreateCommentCommand(Repository repository, IAssignmentService assignmentService,
                             IProjectService projectService, INotificationService notificationService)
 {
     this.repository          = repository;
     this.assignmentService   = assignmentService;
     this.projectService      = projectService;
     this.notificationService = notificationService;
 }
Пример #19
0
 public ExerciseController(IAssignmentService assignmentService,
                           IExerciseRepository exerciseRepository,
                           IExerciseConverter exerciseConverter)
 {
     _assignmentService  = assignmentService;
     _exerciseRepository = exerciseRepository;
     _exerciseConverter  = exerciseConverter;
 }
Пример #20
0
        public AssignmentController(IAssignmentService assignmentService, ApplicationUserManager userManager)
        {
            Guard.WhenArgument(assignmentService, "assignmentService").IsNull().Throw();
            Guard.WhenArgument(userManager, "userManager").IsNull().Throw();

            this.userManager       = userManager;
            this.assignmentService = assignmentService;
        }
Пример #21
0
 public ManagerController(ApplicationUserManager userManager, IAssignmentService assignmentService, IDictionaryService dictionaryService, ISprintService sprintService, IProjectService projectService)
 {
     this._userManager = userManager;
     this._assignmentService = assignmentService;
     this._dictionaryService = dictionaryService;
     this._sprintService = sprintService;
     this._projectService = projectService;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public BaseAssignmentController(
     BaseControllerArgs args,
     IClassroomService classroomService,
     IAssignmentService assignmentService)
     : base(args, classroomService)
 {
     AssignmentService = assignmentService;
 }
Пример #23
0
 public ManagerController(ApplicationUserManager userManager, IAssignmentService assignmentService, IDictionaryService dictionaryService, ISprintService sprintService, IProjectService projectService)
 {
     this._userManager       = userManager;
     this._assignmentService = assignmentService;
     this._dictionaryService = dictionaryService;
     this._sprintService     = sprintService;
     this._projectService    = projectService;
 }
Пример #24
0
 public CreateAssignmentCommand(Repository repository, IProjectService projectService, IAssignmentService assignmentService,
                                IUserService userService)
 {
     this.repository        = repository;
     this.projectService    = projectService;
     this.assignmentService = assignmentService;
     this.userService       = userService;
 }
Пример #25
0
 public CommonController(IRepository <Feature> featureRepository,
                         IRepository <PointMeterLineItem> pointMeterLineItemRepository,
                         IRepository <Core.Domain.Asset> assetRepository,
                         IRepository <Location> locationRepository,
                         IRepository <Store> storeRepository,
                         IRepository <WorkOrder> workOrderRepository,
                         IRepository <ServiceRequest> serviceRequestRepository,
                         IRepository <Site> siteRepository,
                         IRepository <StoreLocator> storeLocatorRepository,
                         IRepository <StoreLocatorItem> storeLocatorItemRepository,
                         IRepository <AssignmentHistory> assignmentHistoryRepository,
                         IRepository <Assignment> assignmentRepository,
                         IRepository <User> userRepository,
                         IRepository <Address> addressRepository,
                         IRepository <SLADefinition> slaDefinitionRepository,
                         IValueItemService valueItemService,
                         ILocationService locationService,
                         IMeterGroupService meterGroupService,
                         IAssignmentService assignmentService,
                         ISiteService siteService,
                         ILogger logger,
                         IDateTimeHelper dateTimeHelper,
                         IWorkContext workContext,
                         ILocalizationService localizationService,
                         DapperContext dapperContext,
                         HttpContextBase httpContext,
                         IDbContext dbContext,
                         GeneralSettings generalSettings)
 {
     this._featureRepository            = featureRepository;
     this._pointMeterLineItemRepository = pointMeterLineItemRepository;
     this._assetRepository             = assetRepository;
     this._locationRepository          = locationRepository;
     this._storeRepository             = storeRepository;
     this._workOrderRepository         = workOrderRepository;
     this._serviceRequestRepository    = serviceRequestRepository;
     this._siteRepository              = siteRepository;
     this._storeLocatorRepository      = storeLocatorRepository;
     this._storeLocatorItemRepository  = storeLocatorItemRepository;
     this._assignmentHistoryRepository = assignmentHistoryRepository;
     this._assignmentRepository        = assignmentRepository;
     this._userRepository              = userRepository;
     this._addressRepository           = addressRepository;
     this._slaDefinitionRepository     = slaDefinitionRepository;
     this._valueItemService            = valueItemService;
     this._locationService             = locationService;
     this._meterGroupService           = meterGroupService;
     this._assignmentService           = assignmentService;
     this._siteService         = siteService;
     this._logger              = logger;
     this._dateTimeHelper      = dateTimeHelper;
     this._workContext         = workContext;
     this._localizationService = localizationService;
     this._dapperContext       = dapperContext;
     this._httpContext         = httpContext;
     this._dbContext           = dbContext;
     this._generalSettings     = generalSettings;
 }
Пример #26
0
 public AssignmentVm()
 {
     _assignmentService = ServiceLocator.Current.GetInstance <IAssignmentService>();
     _timer             = new Timer(TimeSpan.FromSeconds(1), () =>
     {
         SelectedActivity.Duration = SelectedActivity.Duration.Add(TimeSpan.FromSeconds(1));
         TimerChanged?.Invoke(this, EventArgs.Empty);
     });
 }
Пример #27
0
 public AssignmentBuilderController(IAssignmentService assignmentService, IQuestionBankDocument questionBankDocument, ICompetencyService competencyService, IQuestionBankService questionBankService,ISkillSetService skillSetService)
 {
     _assignmentService = assignmentService;
     _questionBankDocument = questionBankDocument;
     _competencyService = competencyService;
     _questionBankService = questionBankService;
       //  this._skillSetDocument = skillSetDocument;
     _skillSetService = skillSetService;
 }
 public AssignmentController(
     IAssignmentService assignmentService,
     IAssignmentModelFactory assignmentModelFactory,
     IExigencyService exigencyService)
 {
     _assignmentService      = assignmentService;
     _assignmentModelFactory = assignmentModelFactory;
     _exigencyService        = exigencyService;
 }
Пример #29
0
 public HomeController(
     IStudentService studentService, ITeacherService teacherService,
     ICourseService courseService, IAssignmentService assignmentService)
 {
     _studentDb    = studentService;
     _teacherDb    = teacherService;
     _courseDb     = courseService;
     _assignmentDb = assignmentService;
 }
 public PDistributorController(IPDistributorService pdisService, IRepresentativeService repService, IAccountService accountService,
                               IStaffService staffService, IAssignmentService assigmentService)
 {
     this._pdistributorService = pdisService;
     _representativeService    = repService;
     _accountService           = accountService;
     _staffService             = staffService;
     _assigmentService         = assigmentService;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public AssignmentQuestionController(
     BaseControllerArgs args,
     IClassroomService classroomService,
     IAssignmentService assignmentService,
     IAssignmentQuestionService assignmentQuestionService)
     : base(args, classroomService, assignmentService)
 {
     AssignmentQuestionService = assignmentQuestionService;
 }
Пример #32
0
 public InvoiceController(IAssignmentService assignmentService, IDbService <Adjustment> adjustmentService, IDbService <Invoice> invoiceService, IDbService <InvoiceAttachment> invoiceAttachmentService, IDbService <Attachment> attachmentService, IDbService <Customer> customerService, IUnitOfWork uow)
 {
     _assignmentService        = assignmentService;
     _invoiceService           = invoiceService;
     _invoiceAttachmentService = invoiceAttachmentService;
     _attachmentService        = attachmentService;
     _customerService          = customerService;
     _adjustmentService        = adjustmentService;
     _uow = uow;
 }
 public HomeController(
     IAssignmentService assignmentService,
     INotificationService notificationService,
     UserManager <AppUser> userManager,
     IReportService reportService) : base(userManager)
 {
     _assignmentService   = assignmentService;
     _notificationService = notificationService;
     _reportService       = reportService;
 }
		/// <summary>
		/// Constructor.
		/// </summary>
		public AssignmentController(
			BaseControllerArgs args,
			IClassroomService classroomService,
			IAssignmentService assignmentService,
			ISectionService sectionService,
			IQuestionService questionService,
			IUserService userService)
				: base(args, classroomService)
		{
			AssignmentService = assignmentService;
			SectionService = sectionService;
			QuestionService = questionService;
			UserService = userService;
		}
Пример #35
0
        public AssignmentViewModel ()
        {
            AvailableStatuses = new AssignmentStatus []
            {
                AssignmentStatus.Hold,
                AssignmentStatus.Active,
                AssignmentStatus.Complete,
            };

            service = ServiceContainer.Resolve<IAssignmentService> ();

            timer = new Timer (1000);

#if !NETFX_CORE
            //This causes our timer to fire it's events on the UI thread
            timer.SynchronizingObject = ServiceContainer.Resolve<ISynchronizeInvoke> ();
#endif
            timer.Elapsed += (sender, e) => {
                CurrentHours = currentHours.Add (TimeSpan.FromSeconds (1));
                Hours = hours.Add (TimeSpan.FromSeconds (1));
            };
        }
        public void SetUp ()
        {
            Database.Initialize (CancellationToken.None).Wait ();

            service = new SampleAssignmentService ();
        }
Пример #37
0
 public HistoryViewModel ()
 {
     service = ServiceContainer.Resolve<IAssignmentService> ();
 }
Пример #38
0
 public PhotoViewModel ()
 {
     service = ServiceContainer.Resolve<IAssignmentService> ();
 }
 public AssignmentsController(IProjectService projectService, IAssignmentService assignmentService, IDictionaryService dictionaryService)
 {
     _assignmentService = assignmentService;
     _dictionaryService = dictionaryService;
     _projectService = projectService;
 }
 public ExpenseViewModel ()
 {
     service = ServiceContainer.Resolve<IAssignmentService> ();
 }