Beispiel #1
0
        public void MyTestInitialize()
        {
            var kernel = NinjectWebCommon.CreatePublicKernel();

            service     = kernel.Get <IInvitService>();
            serviceUser = kernel.Get <IUserService>();
        }
Beispiel #2
0
 public ActivityService(IActivityRepository _repo, IFollowService _followService
     , IInvitService _invitService
     , INotificationRepository _notificationRepo
     , IUserService _userService
         )
 {
     this.repoActivity = _repo;
     this.serviceFollow = _followService;
     this.serviceInvit = _invitService;
     this.repoNotification = _notificationRepo;
     this.serviceUser = _userService;
 }
Beispiel #3
0
 public ActivityService(IActivityRepository _repo, IFollowService _followService
                        , IInvitService _invitService
                        , INotificationRepository _notificationRepo
                        , IUserService _userService
                        )
 {
     this.repoActivity     = _repo;
     this.serviceFollow    = _followService;
     this.serviceInvit     = _invitService;
     this.repoNotification = _notificationRepo;
     this.serviceUser      = _userService;
 }
Beispiel #4
0
        public SecurityService(IProjectService projectService,
                               IInvitService invitService)
        {
            hasRightMethods = new Dictionary <SecureActivity, HasRight_Delegate>();
            hasRightMethods.Add(SecureActivity.ProjectEdit, CanEditProject);
            hasRightMethods.Add(SecureActivity.ProjectView, CanViewProject);
            hasRightMethods.Add(SecureActivity.ProjectDelete, CanDeleteProject);
            hasRightMethods.Add(SecureActivity.TrackEdit, CanEditTrack);
            hasRightMethods.Add(SecureActivity.TrackDelete, CanDeleteTrack);
            hasRightMethods.Add(SecureActivity.CommentEdit, CanEditComment);
            hasRightMethods.Add(SecureActivity.ViewUserDashboard, CanViewUserDashboard);

            this.serviceProject = projectService;
            this.serviceInvit   = invitService;
        }
Beispiel #5
0
        public SecurityService( IProjectService projectService,
            IInvitService invitService)
        {
            hasRightMethods = new Dictionary<SecureActivity, HasRight_Delegate>();
            hasRightMethods.Add(SecureActivity.ProjectEdit, CanEditProject);
            hasRightMethods.Add(SecureActivity.ProjectView, CanViewProject);
            hasRightMethods.Add(SecureActivity.ProjectDelete, CanDeleteProject);
            hasRightMethods.Add(SecureActivity.TrackEdit, CanEditTrack);
            hasRightMethods.Add(SecureActivity.TrackDelete, CanDeleteTrack);
            hasRightMethods.Add(SecureActivity.CommentEdit, CanEditComment);
            hasRightMethods.Add(SecureActivity.ViewUserDashboard, CanViewUserDashboard);

            this.serviceProject = projectService;
            this.serviceInvit = invitService;
        }
Beispiel #6
0
 public SocialController(ISocialService socialService
     , IInvitService invitService
     , IProjectService projectService
     , IActivityService activityService
     , IUserStatisticsService statService
     , IUserService userService
      , ILogService logService
     , ICacheService cacheService
      , ISecurityService security
     , IMailService mail
     )
     : base(userService, logService)
 {
     this.serviceSecurity = security;
     this.serviceSocial = socialService;
     this.serviceInvit = invitService;
     this.serviceProject = projectService;
     this.serviceActivity = activityService;
     this.serviceActivity.ServiceProject = projectService;
     this.serviceStatistics = statService;
     this.serviceCache = cacheService;
     this.serviceMail = mail;
 }
Beispiel #7
0
 public SocialController(ISocialService socialService
                         , IInvitService invitService
                         , IProjectService projectService
                         , IActivityService activityService
                         , IUserStatisticsService statService
                         , IUserService userService
                         , ILogService logService
                         , ICacheService cacheService
                         , ISecurityService security
                         , IMailService mail
                         )
     : base(userService, logService)
 {
     this.serviceSecurity = security;
     this.serviceSocial   = socialService;
     this.serviceInvit    = invitService;
     this.serviceProject  = projectService;
     this.serviceActivity = activityService;
     this.serviceActivity.ServiceProject = projectService;
     this.serviceStatistics = statService;
     this.serviceCache      = cacheService;
     this.serviceMail       = mail;
 }
Beispiel #8
0
 public void MyTestInitialize()
 {
     var kernel = NinjectWebCommon.CreatePublicKernel();
     service = kernel.Get<IInvitService>();
     serviceUser = kernel.Get<IUserService>();
 }