public void RemoveGroup() { var group = new AddressGroup( this.addressFactory.Create(), this.contractRegistry, this.permissionManager.Address); var addMemberAction = new RegisterGroupAction( string.Empty, this.addressGroupRegistry.Address, group); this.permissionManager.ExecuteAction(addMemberAction); var removeMemberAction = new UnregisterGroupAction(string.Empty, this.addressGroupRegistry.Address, group.Address); this.permissionManager.ExecuteAction(removeMemberAction); Assert.False(this.addressGroupRegistry.GetAllGroups().Contains(group)); }
private bool HandleUnregisterGroup(UnregisterGroupAction action) { return(this.groupAddresses.Remove(action.AddressGroup)); }