Exemple #1
0
 public AuthController(IAuthenticateUser authenticateUser,
                       IAddNewUser addNewUser,
                       IEmailService emailService,
                       IConfirmUserEmailByToken confirmUserEmailByToken,
                       IGetUserByEmail getUserByEmail,
                       IAddUserTokenToUser addUserTokenToUser,
                       IGetUserByToken getUserByToken,
                       IEditUserPassword editUserPassword,
                       IDeleteUserTokenyByTokenString deleteUserTokenyByTokenString,
                       IAddNewEmailMessage addNewEmailMessage,
                       ICheckDomainExistsByName checkDomainExistsByName,
                       IAddNewDomain addNewDomain,
                       ISetDomainOwner setDomainOwner,
                       IAddUserToDomain addUserToDomain,
                       IGetRoleByName getRoleByName)
 {
     this.authenticateUser        = authenticateUser;
     this.addNewUser              = addNewUser;
     this.emailService            = emailService;
     this.confirmUserEmailByToken = confirmUserEmailByToken;
     this.getUserByEmail          = getUserByEmail;
     this.addUserTokenToUser      = addUserTokenToUser;
     this.getUserByToken          = getUserByToken;
     this.editUserPassword        = editUserPassword;
     this.addNewEmailMessage      = addNewEmailMessage;
     this.checkDomainExistsByName = checkDomainExistsByName;
     this.addNewDomain            = addNewDomain;
     this.setDomainOwner          = setDomainOwner;
     this.addUserToDomain         = addUserToDomain;
     this.getRoleByName           = getRoleByName;
 }
 public DbContextSeeder(IAddNewUser addNewUser,
                        IConfirmUserEmailByToken confirmUserEmailByToken,
                        IAddNewDomain addNewDomain,
                        IGetDomainByName getDomainByName,
                        ISetDomainOwner setDomainOwner,
                        IAddNewRole addNewRole,
                        IGetRoleByName getRoleByName,
                        IAddUserToDomain addUserToDomain)
 {
     this.addNewUser              = addNewUser;
     this.addNewDomain            = addNewDomain;
     this.confirmUserEmailByToken = confirmUserEmailByToken;
     this.getDomainByName         = getDomainByName;
     this.setDomainOwner          = setDomainOwner;
     this.addNewRole              = addNewRole;
     this.getRoleByName           = getRoleByName;
     this.addUserToDomain         = addUserToDomain;
 }