public static AssociationConfiguration FromAssociationStorage(AssociationStorage associationStorage)
        {
            AssociationConfiguration associationConfiguration = new AssociationConfiguration(associationStorage.OrganizationalUnitRoot.ObjectGuid, associationStorage.Id.ObjectGuid);

            UnifiedPolicyStorageFactory.CopyPropertiesFromStorage <AssociationConfiguration>(associationConfiguration, new TenantSettingFacade <AssociationStorage>(associationStorage));
            return(associationConfiguration);
        }
        public static AssociationStorage ToAssociationStorage(AssociationConfiguration association)
        {
            AssociationStorage associationStorage = new AssociationStorage();

            associationStorage[ADObjectSchema.OrganizationalUnitRoot] = new ADObjectId(association.TenantId);
            associationStorage.Name = association.Name;
            associationStorage.SetId((ADObjectId)DalHelper.ConvertFromStoreObject(association.ObjectId, typeof(ADObjectId)));
            UnifiedPolicyStorageFactory.CopyPropertiesToStorage <AssociationConfiguration>(new TenantSettingFacade <AssociationStorage>(associationStorage), association);
            return(associationStorage);
        }