public void RemoveMember() { var address = this.addressFactory.Create(); var addMember = new RegisterGroupMemberAction(string.Empty, this.addressGroup.Address, address); this.permissionManager.ExecuteAction(addMember); var removeMemberAction = new UnregisterGroupMemberAction(string.Empty, this.addressGroup.Address, address); this.permissionManager.ExecuteAction(removeMemberAction); Assert.False(this.addressGroup.IsMember(address)); }
protected virtual bool HandleRemoveMemberAction(UnregisterGroupMemberAction action) { return(this.members.Remove(action.MemberAddress)); }