예제 #1
0
        public ExplorerModel(
            IADRepositoryFactory factory,
            IGroupMapper groupMapper,
            IUserMapper userMapper,
            IPropertyMapper propertyMapper)
        {
            if (factory == null)
            {
                throw new ArgumentNullException("factory");
            }
            if (groupMapper == null)
            {
                throw new ArgumentNullException("groupMapper");
            }
            if (userMapper == null)
            {
                throw new ArgumentNullException("userMapper");
            }
            if (propertyMapper == null)
            {
                throw new ArgumentNullException("propertyMapper");
            }
            this.factory        = factory;
            this.groupMapper    = groupMapper;
            this.userMapper     = userMapper;
            this.propertyMapper = propertyMapper;
            this.groupTask      = Task.Factory.StartNew(() => { });
            this.userTask       = Task.Factory.StartNew(() => { });

            Groups = new ThreadSafeObservableCollection <GroupModel>();
            Groups.EnableSync();

            Users = new ThreadSafeObservableCollection <UserModel>();
            Users.EnableSync();
        }
예제 #2
0
 public GroupController(IGroupService groupService, IGroupForListingMapper groupForListingMapper, IEnrollmentService enrollmentService, 
     IWordProgressService wordProgressService, IWordSuiteService wordsuiteService, ICourseService courseService,
     ICourseForGroupMapper courseMapper, IGroupMapper groupMapper)
 {
     _groupService = groupService;
     _groupForListingMapper = groupForListingMapper;
     _enrollmentService = enrollmentService;
     _wordProgressService = wordProgressService;
     _wordsuiteService = wordsuiteService;
     _courseService = courseService;
     _courseMapper = courseMapper;
     _groupMapper = groupMapper;
 }
예제 #3
0
 public GroupController(IGroupService groupService, IGroupForListingMapper groupForListingMapper, IEnrollmentService enrollmentService,
                        IWordProgressService wordProgressService, IWordSuiteService wordsuiteService, ICourseService courseService,
                        ICourseForGroupMapper courseMapper, IGroupMapper groupMapper)
 {
     _groupService          = groupService;
     _groupForListingMapper = groupForListingMapper;
     _enrollmentService     = enrollmentService;
     _wordProgressService   = wordProgressService;
     _wordsuiteService      = wordsuiteService;
     _courseService         = courseService;
     _courseMapper          = courseMapper;
     _groupMapper           = groupMapper;
 }
예제 #4
0
 public GroupController(
     IServiceGroup serviceGroup,
     IServiceUserGroup serviceUserGroup,
     IServiceGroupActivity serviceGroupActivity,
     IGroupMapper groupMapper,
     IGroupAdminMapper groupAdminMapper,
     IActivityMapper activityMapper,
     IUrlHelper urlHelper)
 {
     this.serviceGroup         = serviceGroup;
     this.serviceGroupActivity = serviceGroupActivity;
     this.serviceUserGroup     = serviceUserGroup;
     this.groupMapper          = groupMapper;
     this.groupAdminMapper     = groupAdminMapper;
     this.activityMapper       = activityMapper;
     this.urlHelper            = urlHelper;
 }
예제 #5
0
 public GroupService(IGroupMapper mapper)
 {
     _mapper = mapper;
 }
예제 #6
0
 public GroupService(IGroupMapper mapper)
 {
     _mapper = mapper;
 }