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));
        }
Ejemplo n.º 2
0
 private bool HandleUnregisterGroup(UnregisterGroupAction action)
 {
     return(this.groupAddresses.Remove(action.AddressGroup));
 }