Changeset 936 for trunk/sources/HeuristicLab.Hive.Server.Core/DbTestApp.cs
- Timestamp:
- 12/10/08 11:55:47 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/DbTestApp.cs
r925 r936 102 102 } 103 103 104 private void TestUserGroupAdapter() { 105 IUserGroupAdapter userGroupAdapter = 106 ServiceLocator.GetUserGroupAdapter(); 107 108 User user = 109 new User(); 110 user.Name = "Stefan"; 111 112 User user2 = 113 new User(); 114 user2.Name = "Martin"; 115 116 UserGroup group = 117 new UserGroup(); 118 119 UserGroup subGroup = 120 new UserGroup(); 121 subGroup.Members.Add(user); 122 123 group.Members.Add(user2); 124 group.Members.Add(subGroup); 125 126 userGroupAdapter.UpdateUserGroup(group); 127 128 UserGroup read = 129 userGroupAdapter.GetUserGroupById(group.PermissionOwnerId); 130 131 ICollection<UserGroup> userGroups = 132 userGroupAdapter.GetAllUserGroups(); 133 134 userGroupAdapter.DeleteUserGroup(subGroup); 135 136 userGroups = 137 userGroupAdapter.GetAllUserGroups(); 138 139 read = 140 userGroupAdapter.GetUserGroupById(group.PermissionOwnerId); 141 142 userGroupAdapter.DeleteUserGroup(group); 143 144 userGroups = 145 userGroupAdapter.GetAllUserGroups(); 146 147 IUserAdapter userAdapter = 148 ServiceLocator.GetUserAdapter(); 149 150 userAdapter.DeleteUser(user); 151 userAdapter.DeleteUser(user2); 152 } 153 104 154 public override void Run() { 105 155 TestClientAdapter(); 106 156 TestUserAdapter(); 157 TestUserGroupAdapter(); 107 158 108 159 ITransactionManager transactionManager =
Note: See TracChangeset
for help on using the changeset viewer.