private PageDisplayTemplate CreatePageTemplate()
        {
            var pageDsiplayTemplate = new PageDisplayTemplate
            {
                FileName      = "FileName - " + Guid.NewGuid().ToString(),
                Name          = "PageDisplayTemplate - " + Guid.NewGuid().ToString(),
                PageType      = CreatePageType(),
                ThumbnailPath = "C:\temp"
            };

            Repository.Data.Save(pageDsiplayTemplate);
            return(pageDsiplayTemplate);
        }
        public void PageDisplayTemplateInsertTest()
        {
            var pageDisplayTemplate = new PageDisplayTemplate();

            try
            {
                Repository.Data.Save(pageDisplayTemplate);
            }
            catch (ValidationArgumentException ex)
            {
                Assert.True(ex.ValidationResult.Count == 4);
            }
        }