public void TestAssignIndicatorToProfileWhereOverriddenMetadata()
        {
            var changer = new IndicatorOwnerChanger(_profilesReader, _profileRepository);
            var indicatorId = IndicatorIds.Under18Conceptions;

            // Set first owner
            const int profileId = ProfileIds.SexualHealth;
            changer.AssignIndicatorToProfile(indicatorId, profileId);
            Assert.AreEqual(profileId, GetOwnerProfileId(indicatorId));

            // Confirm owner can be changed
            const int profileId2 = ProfileIds.HealthProfiles;
            changer.AssignIndicatorToProfile(indicatorId, profileId2);
            Assert.AreEqual(profileId2, GetOwnerProfileId(indicatorId));
        }
        public void TestAssignIndicatorToProfile()
        {
            const int indicatorId = IndicatorIds.PeopleWhoDieAtHome;

            var changer = new IndicatorOwnerChanger(_profilesReader, _profileRepository);

            // Set first owner
            const int profileId = ProfileIds.Phof;
            changer.AssignIndicatorToProfile(indicatorId, profileId);
            Assert.AreEqual(profileId, GetOwnerProfileId(indicatorId));

            // Confirm owner can be changed
            const int profileId2 = ProfileIds.HealthProfiles;
            changer.AssignIndicatorToProfile(indicatorId, profileId2);
            Assert.AreEqual(profileId2, GetOwnerProfileId(indicatorId));
        }