예제 #1
0
        public SystemAccount CreateSystemAdmin(string identifier, Email email)
        {
            var systemAccount = new SystemAccount(identifier, email);

            _systemAccountRepository.MakePersistent(systemAccount);
            return(systemAccount);
        }
예제 #2
0
        public SystemAccount Create(Organization organization, string identifier, Email email)
        {
            var systemAccount = new SystemAccount(organization, identifier, email);

            _systemAccountRepository.MakePersistent(systemAccount);
            return(systemAccount);
        }
예제 #3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="SystemAccountRole" /> class.
 /// </summary>
 /// <param name="systemAccount">The system account.</param>
 /// <param name="role">The role.</param>
 protected internal SystemAccountRole(SystemAccount systemAccount, Role role)
 {
     SystemAccount = systemAccount;
     Role          = role;
 }