public void AboutTest()
        {
            AboutEntity entity = homeController.About();

            Assert.IsNotNull(entity);
            Assert.IsNotNull(entity.Id);
            Assert.IsNotNull(entity.Name);
            Assert.IsNotNull(entity.DisplayDataList);
            Assert.Equals(entity.Id, "about");
            Assert.Equals(entity.Name, "About");
            Assert.Equals(entity.DisplayDataList.Count, 2);
        }
Beispiel #2
0
        /// <summary>
        /// Gets the data for the about section in the home page.
        /// </summary>
        /// <returns>about model containing the data for the about section in the home page.</returns>
        public HomeEntity GetAboutSectionData()
        {
            AboutEntity aboutEntity = this.homeEntityFactory.GetAboutEntity() as AboutEntity;

            aboutEntity.Id   = "about";
            aboutEntity.Name = "About";
            List <DisplayDataEntity> displayDataList       = new List <DisplayDataEntity>();
            DisplayDataEntity        leftSideDisplayEntity = displayDataEntityFactory.GetEntity() as DisplayDataEntity;

            leftSideDisplayEntity.Class = "col-lg-4 ml-auto";
            leftSideDisplayEntity.Data  = @"Freelancer is a free bootstrap theme created by Start Bootstrap. The download includes the complete source
                                          files including HTML, CSS, and JavaScript as well as optional LESS stylesheets for easy customization.";
            DisplayDataEntity rightSideDataEntity = displayDataEntityFactory.GetEntity() as DisplayDataEntity;

            rightSideDataEntity.Class = "col-lg-4 mr-auto";
            rightSideDataEntity.Data  = @"Whether you're a student looking to showcase your work, a professional looking to attract clients, or a graphic\
                                        artist looking to share your projects, this template is the perfect starting point!";
            displayDataList.Add(leftSideDisplayEntity);
            displayDataList.Add(rightSideDataEntity);
            aboutEntity.DisplayDataList = displayDataList;
            return(aboutEntity);
        }