public void CreateAddedUser(AddedUser cmd) { if (cmd == null) { throw new ArgumentNullException(nameof(cmd)); } _access.AddedUsers.Add(cmd); }
void When(AddedUser @event) { Id = new UserId(@event.UserId); _roles = new HashSet <RoleId>(); _disabled = false; }
public void UpdateAddedUser(AddedUser AddedUser) { _access.Update(AddedUser); }
public void DeleteAddedUser(AddedUser AddedUser) { _access.Remove(AddedUser); }