public void ResumeMapperUnitTests_ToWorkItemModel()
        {
            // Arrange
            const string titleValue       = "a";
            const string aliasValue       = "b";
            const string linkValue        = "c";
            const string subtitleValue    = "d";
            const string descriptionValue = "e";

            XElement element = new XElement(
                "Root",
                new XElement("title", titleValue),
                new XElement("alias", aliasValue),
                new XElement("link", linkValue),
                new XElement("subtitle", subtitleValue),
                new XElement("description", descriptionValue)
                );
            IWorkItemModelDao dao = new WorkItemModelXmlDao(element);

            // Act
            WorkItemModel model = ResumeMapper.ToWorkItemModel(dao);

            // Assert
            Assert.IsNotNull(model);
            Assert.AreEqual(titleValue, model.Title);
            Assert.AreEqual(aliasValue, model.Alias);
            Assert.AreEqual(linkValue, model.Link);
            Assert.AreEqual(subtitleValue, model.Subtitle);
            Assert.AreEqual(descriptionValue, model.Description);
        }
        public IEnumerable <WorkItemModel> GetSideProjects()
        {
            IEnumerable <WorkItemModel> items = new List <WorkItemModel>();

            if (_isInitialized)
            {
                items = _personalWorkDoc.Descendants("work")
                        .Select(item => ResumeMapper.ToWorkItemModel(new WorkItemModelXmlDao(item)));
            }

            return(items);
        }