/// <summary>
        /// Initializes a new instance of the <see cref="WorkbookData"/> class.
        /// </summary>
        /// <param name="iteration">
        /// The iteration that needs to be stored in the <see cref="SitedirectoryData"/> property
        /// </param>
        public WorkbookData(CDP4Common.EngineeringModelData.Iteration iteration)
        {
            var factory = new WorkbookDataDtoFactory(iteration);

            factory.Process();

            this.SetSiteDirectoryData(factory);
            this.SetIterationData(factory);
        }
        /// <summary>
        /// Set the content of the <see cref="iterationData"/> property.
        /// </summary>
        /// <param name="factory">
        /// The <see cref="WorkbookDataDtoFactory"/> that contains the DTO's
        /// </param>
        private void SetIterationData(WorkbookDataDtoFactory factory)
        {
            using (var memoryStream = new MemoryStream())
            {
                this.Serializer.SerializeToStream(factory.IterationThings, memoryStream);
                memoryStream.Position = 0;

                using (var reader = new StreamReader(memoryStream))
                {
                    this.iterationData = reader.ReadToEnd();
                }
            }
        }