public void Handle(AddedRoleToRoleGroup message)
 {
     HashSet<Guid> roles;
       if (!_rolesInRoleGroup.TryGetValue(message.RoleGroupId, out roles)) {
     roles = new HashSet<Guid>();
     _rolesInRoleGroup.Add(message.RoleGroupId, roles);
       }
       roles.Add(message.RoleId);
 }
Example #2
0
 void When(AddedRoleToRoleGroup @event)
 {
     _roles.Add(new RoleId(@event.RoleId));
 }