using System; using System.Collections.Generic; using System.Linq; using System.Text; using HeuristicLab.Hive.Contracts.Interfaces; using HeuristicLab.Hive.Contracts.BusinessObjects; namespace HeuristicLab.Hive.Server.Core { class UserRoleManager: IUserRoleManager { List users; List userGroups; public UserRoleManager() { users = new List(); userGroups = new List(); users.Add(new User { PermissionOwnerId = 1, Name = "Hugo", Password = "hUg0" }); users.Add(new User { PermissionOwnerId = 2, Name = "Seppl", Password = "seppl" }); users.Add(new User { PermissionOwnerId = 3, Name = "Greg", Password = "greg" }); userGroups.Add(new UserGroup { UserGroupId = 1 }); userGroups.Add(new UserGroup { UserGroupId = 2 }); } #region IUserRoleManager Members public List GetAllUsers() { return users; } public void AddNewUser(User user) { } public List GetAllUserGroups() { return userGroups; } #endregion } }