public void CreateColumnSiteBoolean()
 {
     if (!ContextSharePoint.VerifyServer(site))
     {
         Assert.Inconclusive();
     }
     siteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnBaseExtended
     {
         AddPrefix  = true,
         FieldType  = SPFieldType.Boolean,
         Group      = "TEST",
         MultiValue = false,
         Name       = "ColumnBoolean",
         Requiered  = false,
         Web        = site.RootWeb
     });
     Assert.IsTrue(siteColumn.Create());
     siteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnBase
     {
         AddPrefix = true,
         Name      = "ColumnBoolean",
         Web       = site.RootWeb
     });
     Assert.IsTrue(siteColumn.Exist());
     Assert.IsTrue(siteColumn.Delete());
 }
 public void CreateColumnSiteText()
 {
  if (!ContextSharePoint.VerifyServer(site)) Assert.Inconclusive();
   var  siteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnDefaultValue
     {
         Web = site.RootWeb,
         AddPrefix = true,
         FieldType = SPFieldType.Text,
         Group = "TEST",
         MultiValue = false,
         Name = "ColumnText",
         Requiered = false,
         DefaultValue = "GIKA"
     });
     Assert.IsTrue(siteColumn.Create());
     Assert.IsTrue(siteColumn.Delete()); 
 }
 public void CreateColumnSiteChoice()
 {
     if (!ContextSharePoint.VerifyServer(site)) Assert.Inconclusive();
     siteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnChoices
     {
         Web = site.RootWeb,
         AddPrefix = true,
         FieldType = SPFieldType.Choice,
         Group = "TEST",
         MultiValue = false,
         Name = "ColumnChoice",
         Requiered = false,
         Choices = new StringCollection {"one","thow"}
         
     });
     Assert.IsTrue(siteColumn.Create());
     Assert.IsTrue(siteColumn.Delete());
 }
 public void CreateColumnSiteDateTime()
 {
     if (!ContextSharePoint.VerifyServer(site))
     {
         Assert.Inconclusive();
     }
     siteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnBaseExtended
     {
         Web        = site.RootWeb,
         AddPrefix  = true,
         FieldType  = SPFieldType.DateTime,
         Group      = "TEST",
         MultiValue = false,
         Name       = "ColumnDateTime",
         Requiered  = false
     }, TypeDate.Date);
     Assert.IsTrue(siteColumn.Create());
     Assert.IsTrue(siteColumn.Delete());
 }
 public void Init()
 {
     Site = ContextSharePoint.CreateClientContext();
     if (ContextSharePoint.VerifyServer(Site))
     {
         SiteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnBaseExtended
         {
             AddPrefix  = true,
             FieldType  = SPFieldType.Text,
             Group      = "Test",
             MultiValue = false,
             Name       = "test1",
             Requiered  = false,
             Web        = Site.RootWeb
         });
         SiteColumn.Create();
     }
     Logger = new LogManager().GetLogger(new System.Diagnostics.StackTrace().GetFrame(0));
 }
        public void Init()
        {
            Site = ContextSharePoint.CreateClientContext();
            if (ContextSharePoint.VerifyServer(Site))
            {
                SiteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnBaseExtended
                {
                    AddPrefix = true,
                    FieldType = SPFieldType.Text,
                    Group = "Test",
                    MultiValue = false,
                    Name = "test1",
                    Requiered = false,
                    Web = Site.RootWeb
                });
                SiteColumn.Create();
            }
            Logger= new LogManager().GetLogger(new System.Diagnostics.StackTrace().GetFrame(0));

        }
        public void CreateColumnSiteText()
        {
            if (!ContextSharePoint.VerifyServer(site))
            {
                Assert.Inconclusive();
            }
            var siteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnDefaultValue
            {
                Web          = site.RootWeb,
                AddPrefix    = true,
                FieldType    = SPFieldType.Text,
                Group        = "TEST",
                MultiValue   = false,
                Name         = "ColumnText",
                Requiered    = false,
                DefaultValue = "GIKA"
            });

            Assert.IsTrue(siteColumn.Create());
            Assert.IsTrue(siteColumn.Delete());
        }
 public void CreateColumnSiteChoiceParams()
 {
     if (!ContextSharePoint.VerifyServer(site))
     {
         Assert.Inconclusive();
     }
     siteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnChoices
     {
         Web        = site.RootWeb,
         AddPrefix  = true,
         FieldType  = SPFieldType.Choice,
         Group      = "TEST",
         MultiValue = false,
         Name       = "ColumnChoice",
         Requiered  = false,
         Choices    = new StringCollection {
             "one", "thow"
         }
     }, "thow", true);
     Assert.IsTrue(siteColumn.Create());
     Assert.IsTrue(siteColumn.Delete());
 }
        public void CreateColumnSiteBoolean()
        {
            if (!ContextSharePoint.VerifyServer(site)) Assert.Inconclusive();            
            siteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnBaseExtended
            {
                AddPrefix = true,
                FieldType = SPFieldType.Boolean,
                Group = "TEST",
                MultiValue = false,
                Name = "ColumnBoolean",
                Requiered = false,
                Web = site.RootWeb

            });
            Assert.IsTrue(siteColumn.Create());
            siteColumn = new Entities.Artefacts.SiteColumn(new ParamsSiteColumnBase
            {
                AddPrefix = true,
                Name = "ColumnBoolean",
                Web = site.RootWeb
            });
            Assert.IsTrue(siteColumn.Exist());
            Assert.IsTrue(siteColumn.Delete());
        }