public IIncludedResourcesBuilder AddToOne <TFromResource, TToResource>(IToOneResourceLinkageCollectionSource <TFromResource, TToResource> toOneResourceLinkageCollectionSource)
            where TFromResource : class, IResource
            where TToResource : class, IResource
        {
            Contract.Requires(toOneResourceLinkageCollectionSource != null);

            var toOneResourceLinkageBuilder = this.ToOne(toOneResourceLinkageCollectionSource);

            toOneResourceLinkageBuilder.ToOneEnd();
            return(this);
        }
        public IToOneResourceLinkageBuilder <TToResource> ToOne <TFromResource, TToResource>(IToOneResourceLinkageCollectionSource <TFromResource, TToResource> toOneResourceLinkageCollectionSource)
            where TFromResource : class, IResource
            where TToResource : class, IResource
        {
            Contract.Requires(toOneResourceLinkageCollectionSource != null);

            var toOneResourceLinkageCollection = toOneResourceLinkageCollectionSource.GetToOneResourceLinkageCollection();
            var toOneResourceLinkageBuilder    = new ToOneResourceLinkageCollectionBuilder <TFromResource, TToResource>(this, this.DomDocument, toOneResourceLinkageCollection.SafeToReadOnlyCollection());

            return(toOneResourceLinkageBuilder);
        }