public RoleProvider([NotNull] IGroupNameBuilder groupNameBuilder, [NotNull] IRoleRepository roleRepository, [NotNull] ISolutionGroupManager solutionGroupManager) { if (groupNameBuilder == null) { throw new ArgumentNullException(nameof(groupNameBuilder)); } if (roleRepository == null) { throw new ArgumentNullException(nameof(roleRepository)); } if (solutionGroupManager == null) { throw new ArgumentNullException(nameof(solutionGroupManager)); } _groupNameBuilder = groupNameBuilder; _roleRepository = roleRepository; _solutionGroupManager = solutionGroupManager; }