private void UpdateAvailableLifeCycles(UpdateDistribution command, Distribution distribution) { (IList <LifeCycleState> newStates, IList <LifeCycleState> oldStates) = collectionsComparer .Compare(distribution.AvailableLifeCycles, command.AvailableLifeCycles); distribution.AddAvailableLifeCycleStates(newStates); distribution.RemoveAvailableLifeCycleStates(oldStates); }