private void UpdateLifeCycleRules(UpdateDistribution command, Distribution distribution) { (IList <string> newRules, IList <string> oldRules) = collectionsComparer .Compare(distribution.LifeCycleStateRules, command.LifeCycleStateRules); distribution.AddLifeCycleStateRules(newRules); distribution.RemoveLifeCycleStateRules(oldRules); }