示例#1
0
 public GroupsController(
     ScimServerConfiguration serverConfiguration,
     IGroupService groupService) 
     : base(serverConfiguration)
 {
     _GroupService = groupService;
 }
 public ContactController(IContactService contactService, IGroupService groupService, IUserService userService, IAccountService accountService )
 {
     this.contactService = contactService;
     this.groupService = groupService;
     this.userService = userService;
     this.accountService = accountService;
 }
示例#3
0
        public static void MyClassInitialize(TestContext testContext)
        {
            container = TestManager.ConfigureUnityContainer("unity");

            UserService = container.Resolve<IUserService>();
            GroupService = container.Resolve<IGroupService>();
        }
示例#4
0
 public PupilService(ILogger logger, IUnitOfWork unitOfWork, IAccountService accountService, IGroupService groupService)
     : base(logger)
 {
     this.unitOfWork = unitOfWork;
     this.accountService = accountService;
     this.groupService = groupService;
 }
示例#5
0
 public MemberController(
   IMemberService _memberService
     , IGroupService _groupService)
 {
     memberService = _memberService;
     groupService = _groupService;
 }
示例#6
0
 public GroupController(IRoleService _roleService
     , IGroupService _groupService
  )
 {
     roleService = _roleService;
     groupService = _groupService;
 }
示例#7
0
 public AccountController()
 {
     _userService = IoCFactory.UnityContainer.Resolve<IUserService>();
     _groupService = IoCFactory.UnityContainer.Resolve<IGroupService>();
     _messageService = IoCFactory.UnityContainer.Resolve<IMessageService>();
     _authHelper = IoCFactory.UnityContainer.Resolve<IAuthHelper>();
 }
 public MarketingController(ICampaignService campaignService, IGroupService groupService, IUserService userService, IProductService productService)
 {
     this.campaignService = campaignService;
     this.groupService = groupService;
     this.userService = userService;
     this.productService = productService;
 }
示例#9
0
 public MemberController(
   IMemberService MemberService
     , IGroupService GroupService)
 {
     this.MemberService = MemberService;
     this.GroupService = GroupService;
 }
示例#10
0
 public EventService(ISecurityService securityService, IUnitOfWork unitOfWork, ICampaignService campaignService, IGroupService groupService)
 {
     _securityService = securityService;
     _unitOfWork = unitOfWork;
     _campaignService = campaignService;
     _groupService = groupService;
 }
示例#11
0
 public MembersPresenter()
 {
     _accountRepository = new AccountRepository();
     _groupMemberRepository = new GroupMemberRepository();
     _webContext = new WebContext();
     _redirector = new Redirector();
     _groupService = new GroupService();
 }
示例#12
0
 public MessageService(IUnitOfWork unitOfWork, ISecurityService securityService, IEventService eventService, IGroupService groupService, ICampaignService campaignService)
 {
     _unitOfWork = unitOfWork;
     _securityService = securityService;
     _eventService = eventService;
     _groupService = groupService;
     _campaignService = campaignService;
 }
 public ExaminationDatasheetsController(IGroupService gs, ICourseService cs, IAcademicProgressService aps,
     IScheduleService scs)
 {
     groupService = gs;
     courseService = cs;
     academicProgressService = aps;
     scheduleService = scs;
 }
示例#14
0
 public DashboardController(
     IGroupService _groupService
   , IMemberService _memberService
  )
 {
     groupService = _groupService;
     memberService = _memberService;
 }
示例#15
0
 public ManageGroupPresenter()
 {
     _redirector = ObjectFactory.GetInstance<IRedirector>();
     _webContext = ObjectFactory.GetInstance<IWebContext>();
     File._webContext = _webContext;
     _groupService = ObjectFactory.GetInstance<IGroupService>();
     _fileService = ObjectFactory.GetInstance<IFileService>();
 }
 public PurchaseOrderController(IPurchaseOrderService purchaseOrderService,IVendorService vendorService, IContactService contactService,IUserService userService, IGroupService groupService)
 {
     this.purchaseOrderService = purchaseOrderService;
     this.vendorService = vendorService;
     this.contactService = contactService;
     this.groupService = groupService;
     this.userService = userService;
 }
示例#17
0
 public NoteController(IFileService fileService, IFileServerService uploadService, IUserService userService, IGroupService groupService, IUnitOfWork unitOfWork)
 {
     _fileService = fileService;
     _uploadService = uploadService;
     _userService = userService;
     _groupService = groupService;
     _unitOfWork = unitOfWork;
 }
 public LoockupManagementService(ISpecialityService specialityService, ISpecializationService specializationService, IProfessorProfileService professorProfileService, IGroupService groupService, ISubjectService subjectService, IThemeService themeService)
 {
     this.specialityService = specialityService;
     this.specializationService = specializationService;
     this.professorProfileService = professorProfileService;
     this.groupService = groupService;
     this.subjectService = subjectService;
     this.themeService = themeService;
 }
 public InvoiceController(IInvoiceService invoiceService, IGroupService groupService, IUserService userService, IAccountService accountService , IContactService contactService, ISalesOrderService salesOrderService)
 {
     this.invoiceService = invoiceService;
     this.groupService = groupService;
     this.userService = userService;
     this.contactService = contactService;
     this.accountService = accountService;
     this.salesOrderService = salesOrderService;
 }
示例#20
0
 public ScheduleService(ILogger logger, IUnitOfWork unitOfWork, ITeacherService teacherService, ISubjectService subjectService, IGroupService groupService, ILessonDetailService lessonDetail)
     : base(logger)
 {
     this.unitOfWork = unitOfWork;
     this.teacherService = teacherService;
     this.subjectService = subjectService;
     this.groupService = groupService;
     this.lessonDetailService = lessonDetail;
 }
示例#21
0
 public GroupController(
     IGroupService _GroupService,
     IRolesService _RolesService
     
     )
 {
     GroupService = _GroupService;
     RolesService = _RolesService;
 }
示例#22
0
        public GroupController(ISecurityService securityService, IGroupService groupService, IEventService eventService, IMessageService messageService)
            : base(securityService)
        {
            _securityService = securityService;
            _groupService = groupService;

            _eventService = eventService;
            _messageService = messageService;
        }
 public QuoteController(IQuoteService quoteService, IGroupService groupService, IUserService userService, IContactService contactService, IAccountService accountService, IPotentialService potentialService)
 {
     this.quoteService = quoteService;
     this.groupService = groupService;
     this.userService = userService;
     this.contactService = contactService;
     this.accountService = accountService;
     this.potentialService = potentialService;
 }
 public ManagementController(ISemesterSubjectService studySubjectService, IGroupService groupService, IFileService fileService,
     IUserService userService, ISchoolService schoolService)
 {
     _semesterSubjectService = studySubjectService;
     _groupService = groupService;
     _schoolService = schoolService;
     _fileService = fileService;
     _userService = userService;
 }
示例#25
0
 public GroupController(
     IUnitOfWorkAsync unitOfWork,
     IStoredProcedureService storedProcedureService,
     IGroupService groupService)
 {
     _unitOfWork = unitOfWork;
     _groupService = groupService;
     _storedProcedureService = storedProcedureService;
 }
示例#26
0
 public EventService(IMinistryPlatformService ministryPlatformService,
                     IAuthenticationService authenticationService,
                     IConfigurationWrapper configurationWrapper,
                     IGroupService groupService)
     : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService = ministryPlatformService;
     _groupService = groupService;
 }
 public LeadController(ILeadService leadService, IGroupService groupService, IUserService userService, IAccountService accountService, IContactService contactService, IPotentialService potentialService)
 {
     this.leadService = leadService;
     this.groupService = groupService;
     this.userService = userService;
     this.accountService = accountService;
     this.contactService = contactService;
     this.potentialService = potentialService;
 }
示例#28
0
        public GroupsController(IGroupService groupService)
        {
            if (groupService == null)
            {
                throw new ArgumentNullException("groupService");
            }

            _groupService = groupService;
        }
示例#29
0
        public LogGroupServiceWrapper(IGroupService groupService)
        {
            if (groupService == null)
            {
                throw new ArgumentNullException("groupService");
            }

            _groupService = groupService;
        }
示例#30
0
 public ViewGroupForumPostPresenter()
 {
     _groupRepository = new GroupRepository();
     _webContext = new WebContext();
     _redirector = new Redirector();
     _boardForumRepository = new BoardForumRepository();
     _boardCategoryRepository = new BoardCategoryRepository();
     _groupMemberRepository = new GroupMemberRepository();
     _groupService = new GroupService();
     _boardPostRepository = new BoardPostRepository();
 }
示例#31
0
 public UserController(IFreeSql freeSql, IMapper mapper, IUserService userSevice, ICurrentUser currentUser, IUserRepository userRepository, IGroupService groupService, IFileRepository fileRepository)
 {
     _freeSql        = freeSql;
     _mapper         = mapper;
     _userSevice     = userSevice;
     _currentUser    = currentUser;
     _userRepository = userRepository;
     _groupService   = groupService;
     _fileRepository = fileRepository;
 }
示例#32
0
 public GroupModel(IGroupService groupService) : base(groupService)
 {
 }
示例#33
0
 public StudentsController(ChoiceContext context, UserManager <ApplicationUser> userManager, IGroupService groupService)
 {
     _groupService = groupService;
     _userManager  = userManager;
     _context      = context;
 }
示例#34
0
 public LearningClassStudentService(IUnitOfWork unitOfWork, IGroupService groupService) : base(unitOfWork)
 {
     _groupService = groupService;
 }
 public AccountApiController(IUserSevice userService, ISignInManager signInManager, IGroupService groupService)
 {
     UserService   = userService;
     SignInManager = signInManager;
     GroupService  = groupService;
 }
 public GroupsController(IGroupService groupService)
 {
     _groupService = groupService;
 }
 public CreateModel(IGroupService groupService,
                    ILogger <CreateModel> logger)
 {
     _groupService = groupService;
     _logger       = logger;
 }
示例#38
0
 public GroupController(IGroupService groupService, IProfileService profileService)
 {
     _groupService   = groupService;
     _profileService = profileService;
 }
示例#39
0
        public static async Task <bool> Access(this MerchandiseReturn merchandiseReturn, Customer customer, IGroupService groupService)
        {
            if (merchandiseReturn == null)
            {
                return(false);
            }

            //owner
            if (await groupService.IsOwner(customer) && (customer.Id == merchandiseReturn.CustomerId || customer.Id == merchandiseReturn.OwnerId))
            {
                return(true);
            }

            //subaccount
            if (!await groupService.IsOwner(customer) && customer.Id == merchandiseReturn.CustomerId)
            {
                return(true);
            }

            return(false);
        }
示例#40
0
 public HomeController(IMetricService metricService, IFocusService focusService, IGoalService goalService, ICommentService commentService, IUpdateService updateService, ISupportService supportService, IUserService userService, IGroupUserService groupUserService, IGroupService groupService, IGroupGoalService groupGoalService, IGroupUpdateService groupupdateService, IGroupCommentService groupcommentService, IFollowUserService followUserService, IGroupUpdateUserService groupUpdateUserService, IGroupCommentUserService groupCommentUserService, ICommentUserService commentUserService)
 {
     this.metricService           = metricService;
     this.focusService            = focusService;
     this.goalService             = goalService;
     this.commentService          = commentService;
     this.updateService           = updateService;
     this.supportService          = supportService;
     this.userService             = userService;
     this.groupService            = groupService;
     this.groupUserService        = groupUserService;
     this.groupGoalService        = groupGoalService;
     this.groupupdateService      = groupupdateService;
     this.groupcommentService     = groupcommentService;
     this.followUserService       = followUserService;
     this.groupCommentUserService = groupCommentUserService;
     this.groupUpdateUserService  = groupUpdateUserService;
     this.commentUserService      = commentUserService;
 }
示例#41
0
 public PdfController(IGroupService groupService, IExpenseService expenseService, IPdfAutoMapperService autoMapperService)
 {
     _groupService      = groupService;
     _expenseService    = expenseService;
     _autoMapperService = autoMapperService;
 }
示例#42
0
 public RankController(CachedUserManager <UserInfo> userManager, IJudgeService judgeService, IContestService contestService, IGroupService groupService)
 {
     this.userManager    = userManager;
     this.judgeService   = judgeService;
     this.contestService = contestService;
     this.groupService   = groupService;
 }
 public ProductController(IProductService productService, IGroupService groupService)
 {
     _productService = productService;
     _groupService   = groupService;
 }
示例#44
0
 public HomeController(IRankingService rankingService, IGroupService groupService, IUserService userService)
 {
     _rankingService = rankingService;
     _groupService   = groupService;
     _userService    = userService;
 }
示例#45
0
 public RequestDetailsController(IRequestService requestService, IAttachService attachService, IDepartmentService departmentService, IGroupService groupService, IRoleService roleService)
 {
     _requestService    = requestService;
     _attachService     = attachService;
     _departmentService = departmentService;
     _groupService      = groupService;
     _roleService       = roleService;
 }
 public GroupController(IGroupService groupService, IMapper mapper)
 {
     this.groupService = groupService;
     this.mapper       = mapper;
 }
 public AdministrationController(IGroupService _groupService, INavigationService _navigationService)
 {
     groupService      = _groupService;
     navigationService = _navigationService;
 }
示例#48
0
 public AuthController(IAuthService authService, IUserService userService, IRoleService roleService, IGroupService groupService, ILogger <AuthController> logger) : base(userService)
 {
     _authService  = authService;
     _userService  = userService;
     _roleService  = roleService;
     _groupService = groupService;
     _logger       = logger;
 }
示例#49
0
        //[TestInitialize]
        //public void SetUp()
        //{
        //    this.groupService = new RealGroupService;
        //}



        public void SetUp()
        {
            groupService = new GroupService();
        }
示例#50
0
 /// <summary>
 /// Create a controller and set the service
 /// </summary>
 public GroupController(IGroupService service)
 {
     _service = service;
 }
示例#51
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AudienceService"/> class from a <see cref="IAccountService"/> and
 ///     a <see cref="IGroupService"/> components.
 /// </summary>
 /// <param name="accountService">The service used to provide functionality related to the treasury and associated
 /// costs and the Swiss bank account.</param>
 /// <param name="groupService">The service used to provide functionality related to the groups or factions.</param>
 public AudienceService(IAccountService accountService, IGroupService groupService)
 {
     Initialise();
     this.accountService = accountService;
     this.groupService   = groupService;
 }
 public ProviderController(IProviderService providerService, IGroupService groupService, IMapper mapper)
 {
     this.providerService = providerService;
     this.groupService    = groupService;
     this.mapper          = mapper;
 }
示例#53
0
 public AccountsController()
 {
     _authservice       = new ClaimService(PermissionRepository, AuthorizationRepository, Uow);
     _permissionService = new PermissionService(PermissionRepository, Uow);
     _groupService      = new GroupService(GroupRepository, Uow);
 }
示例#54
0
 public UserController(IErrorService errorService, IGroupService groupService, ApplicationUserManager userManager) : base(errorService)
 {
     this._groupService = groupService;
     _userManager       = userManager;
 }
示例#55
0
 public ProductController(IErrorService errorService, IProductService productService, IFileImageService fileImageService, IGroupService groupService) : base(errorService)
 {
     _productService   = productService;
     _fileImageService = fileImageService;
     _groupService     = groupService;
 }
        public void Initialization()
        {
            studentDTOs = new List <StudentDTO>()
            {
                new StudentDTO()
                {
                    Id = 1, Name = "Victor", Surname = "Dyshkant", Age = 19
                },
                new StudentDTO()
                {
                    Id = 2, Name = "Alla", Surname = "Dyshkant", Age = 17
                },
                new StudentDTO()
                {
                    Id = 3, Name = "Oleg", Surname = "Dyshkant", Age = 45
                }
            };
            groupDTOs = new List <GroupDTO>()
            {
                new GroupDTO()
                {
                    Id = 1, Name = "SE-121", Capacity = 20
                },
                new GroupDTO()
                {
                    Id = 2, Name = "SE-221", Capacity = 25
                },
                new GroupDTO()
                {
                    Id = 3, Name = "SE-321", Capacity = 30
                },
                new GroupDTO()
                {
                    Id = 4, Name = "SE-421", Capacity = 18
                }
            };
            groupDtoWithFreePlaces = new GroupDTOWithFreePlaces()
            {
                Id         = 1,
                Name       = "SE-121",
                Capacity   = 20,
                FreePlaces = 5
            };

            var mock = new Mock <IGroupService>();

            mock.Setup(x => x.Get(It.IsAny <int>())).Returns((int Id) => Task.FromResult(groupDTOs.FirstOrDefault(x => x.Id == Id)));
            mock.Setup(x => x.GetAll()).Returns(() => Task.FromResult((IEnumerable <GroupDTO>)groupDTOs));
            mock.Setup(x => x.GetWithFreePlace(It.IsAny <int>())).Returns(() => Task.FromResult(groupDtoWithFreePlaces));
            //mock.Setup(x => x.GetStudentsByGroupId(It.IsAny<int>()).Returns(() => Task.FromResult((IEnumerable<GroupDTO>)groupDTOs));
            //mock.Setup(x => x.AssignStudentToGroup(It.IsAny<int>(),It.IsAny<int>())).Callback((int studentId,int groupId)=>
            //{

            //});


            groupService = mock.Object;
            var mapper = new MapperConfiguration(con =>
            {
                con.AddProfiles(new Profile[] { new Mapping() });
            }).CreateMapper();

            groupController = new GroupController(groupService, mapper);
        }
示例#57
0
 public GroupController(IUserService userService, IGroupService groupService)
 {
     this.userService  = userService;
     this.groupService = groupService;
 }
示例#58
0
 public CreateGroupService(IGroupService groupService)
 {
     this._groupService = groupService;
 }
示例#59
0
 public GroupsController(ILogger <GroupsController> logger,
                         IGroupService groupService)
 {
     this.logger       = logger;
     this.groupService = groupService;
 }
示例#60
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AdviceScreen"/> class from an <see cref="IGroupService"/> and a <see cref="IPressAnyKeyControl"/> components.
 /// </summary>
 /// <param name="groupService">The service that provides functionality related to the groups.</param>
 /// <param name="pressAnyKeyControl">The control that is displayed when the user is required to press a key.</param>
 public AdviceScreen(IGroupService groupService, IPressAnyKeyControl pressAnyKeyControl)
 {
     this.groupService       = groupService;
     this.pressAnyKeyControl = pressAnyKeyControl;
 }