Esempio n. 1
0
 public UserRoleService(iPow.Domain.Repository.IUserRoleRepository userRole,
                        iPow.Domain.Repository.IAdminUserRepository adminUser,
                        iPow.Domain.Repository.IRolesRepository roles)
 {
     if (userRole == null)
     {
         throw new ArgumentNullException("userRoleRepository is null");
     }
     if (adminUser == null)
     {
         throw new ArgumentNullException("adminUserRepository is null");
     }
     if (roles == null)
     {
         throw new ArgumentNullException("rolesRepository is null");
     }
     userRoleRepository  = userRole;
     adminUserRepository = adminUser;
     rolesRepository     = roles;
 }
Esempio n. 2
0
        public UserRoleService(iPow.Domain.Repository.IUserRoleRepository userRole,
            iPow.Domain.Repository.IAdminUserRepository adminUser,
             iPow.Domain.Repository.IRolesRepository roles)
        {
            if (userRole == null)
            {
                throw new ArgumentNullException("userRoleRepository is null");
            }
            if (adminUser == null)
            {
                throw new ArgumentNullException("adminUserRepository is null");
            }
            if (roles == null)
            {
                throw new ArgumentNullException("rolesRepository is null");

            }
            userRoleRepository = userRole;
            adminUserRepository = adminUser;
            rolesRepository = roles;
        }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserService"/> class.
 /// </summary>
 /// <param name="adminUser">The admin user.</param>
 /// <param name="adminUserExtension">The admin user extension.</param>
 /// <param name="adminUserIndividuation">The admin user individuation.</param>
 /// <param name="userAction">The user action.</param>
 /// <param name="userRole">The user role.</param>
 public UserService(iPow.Domain.Repository.IAdminUserRepository adminUser,
                    iPow.Domain.Repository.IAdminUserExtensionRepository adminUserExtension,
                    iPow.Domain.Repository.IAdminUserIndividuationRepository adminUserIndividuation,
                    iPow.Domain.Repository.IUserActionRepository userAction,
                    iPow.Domain.Repository.IUserRoleRepository userRole,
                    iPow.Domain.Repository.IRolePermissionRepository rolePermission)
 {
     if (adminUser == null)
     {
         throw new ArgumentNullException("adminuserrepository is null");
     }
     if (adminUserExtension == null)
     {
         throw new ArgumentNullException("adminUserExtensionRepository is null");
     }
     if (adminUserIndividuation == null)
     {
         throw new ArgumentNullException("adminUserIndividuationRepository is null");
     }
     if (userAction == null)
     {
         throw new ArgumentNullException("userActionRepository is null");
     }
     if (userRole == null)
     {
         throw new ArgumentNullException("userRoleRepository is null");
     }
     if (rolePermission == null)
     {
         throw new ArgumentNullException("rolePermissionRepository is null");
     }
     adminUserRepository              = adminUser;
     adminUserExtensionRepository     = adminUserExtension;
     adminUserIndividuationRepository = adminUserIndividuation;
     userActionRepository             = userAction;
     userRoleRepository       = userRole;
     rolePermissionRepository = rolePermission;
 }
Esempio n. 4
0
 public UserService(iPow.Domain.Repository.IAdminUserRepository adminUser,
      iPow.Domain.Repository.IAdminUserExtensionRepository adminUserExtension,
      iPow.Domain.Repository.IAdminUserIndividuationRepository adminUserIndividuation,
      iPow.Domain.Repository.IUserActionRepository userAction,
      iPow.Domain.Repository.IUserRoleRepository userRole,
      iPow.Domain.Repository.IRolePermissionRepository rolePermission)
 {
     if (adminUser == null)
     {
         throw new ArgumentNullException("adminuserrepository is null");
     }
     if (adminUserExtension == null)
     {
         throw new ArgumentNullException("adminUserExtensionRepository is null");
     }
     if (adminUserIndividuation == null)
     {
         throw new ArgumentNullException("adminUserIndividuationRepository is null");
     }
     if (userAction == null)
     {
         throw new ArgumentNullException("userActionRepository is null");
     }
     if (userRole == null)
     {
         throw new ArgumentNullException("userRoleRepository is null");
     }
     if (rolePermission == null)
     {
         throw new ArgumentNullException("rolePermissionRepository is null");
     }
     adminUserRepository = adminUser;
     adminUserExtensionRepository = adminUserExtension;
     adminUserIndividuationRepository = adminUserIndividuation;
     userActionRepository = userAction;
     userRoleRepository = userRole;
     rolePermissionRepository = rolePermission;
 }