Ejemplo n.º 1
0
		public void RemoveUserGroup_WithParent_ChildIsRemoved()
		{
			BindingModel.RemoveUserGroup(thirdLevel1.Id);
			Assert.AreEqual(0, BindingModel.UserGroups[1].Children[1].Children.Count);
		}
 public void Handle(UserGroupDeletedEvent receivedEvent)
 {
     BindingModel.RemoveUserGroup(receivedEvent.UserGroupId);
 }
Ejemplo n.º 3
0
		public void RemoveUserGroup_WithoutParent_UserGroupIsRemoved()
		{
			BindingModel.RemoveUserGroup(topLevel1.Id);
			Assert.IsFalse(BindingModel.UserGroups.Any(u => u.Id == topLevel1.Id));
		}