private void UpdateOwners(UpdateDistribution command, Distribution distribution)
        {
            (IList <User> addedOwners, IList <User> removedOwners) =
                collectionsComparer
                .Compare(distribution.Owners, command.Owners);

            distribution.AddOwners(addedOwners);
            distribution.RemoveOwners(removedOwners);
        }
        public void AddOwners_PropertiesChanged()
        {
            Distribution distribution = CreateDistribution();
            User         newOwner     = FakeGenerator.GetUser();

            Assert.DoesNotContain(newOwner, distribution.Owners);

            distribution.AddOwners(new List <User> {
                newOwner
            });

            Assert.Contains(newOwner, distribution.Owners);
            Assert.IsType <DistributionOwnersAdded>(distribution.GetUncommitedChanges().Last());
        }