public void Handle(RoleGroupRevokedFromUserAccount message) { _observer.OnNext( new SqlTextStatement( "DELETE FROM [UserAccountEffectiveRoles] WHERE [UserAccountId] = @UserAccountId AND [RoleGroupId] = @RoleGroupId)", new { UserAccountId = message.UserAccountId, RoleGroupId = message.RoleGroupId })); }
void When(RoleGroupRevokedFromUserAccount @event) { _roleGroups.Remove(new RoleGroupId(@event.RoleGroupId)); }