Skip to content

Commit

Permalink
SPMeta2 1.1.90 release, May 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
SubPointSupport committed May 25, 2015
1 parent b4917fc commit 21d6b48
Show file tree
Hide file tree
Showing 21 changed files with 105 additions and 119 deletions.
Binary file modified SPMeta2.v12.suo
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace SPMeta2.CSOM.ModelHandlers.Webparts
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using SPMeta2.BuiltInDefinitions;
using SPMeta2.Containers.Services.Base;
using SPMeta2.Definitions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using SPMeta2.BuiltInDefinitions;
using SPMeta2.Containers.Services.Base;
using SPMeta2.Definitions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override IEnumerable<DefinitionBase> GetAdditionalArtifacts()

var webpartFeature = new FeatureDefinition
{
Scope = FeatureDefinitionScope.Site,
Scope = FeatureDefinitionScope.Site,
Id = new Guid("9acf0f59-3cdc-412b-a647-4185dd4cd9bc"),
Enable = true
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,58 +1,43 @@
using SPMeta2.CSOM.ModelHandlers.Fields;
using SPMeta2.CSOM.ModelHosts;
using SPMeta2.Definitions;
using SPMeta2.Definitions.Base;
using SPMeta2.Definitions.Fields;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SPMeta2.Regression.CSOM.Utils;
using SPMeta2.Utils;
using Microsoft.SharePoint.Client;
using SPMeta2.Exceptions;
using System.Xml.Linq;

namespace SPMeta2.Regression.CSOM.Validation.Fields
{
public class BusinessDataFieldDefinitionValidator : ClientFieldDefinitionValidator
{
public override Type TargetType
{
get { return typeof(BusinessDataFieldDefinition); }
}

public override void DeployModel(object modelHost, DefinitionBase model)
{
base.DeployModel(modelHost, model);

var siteModelHost = modelHost.WithAssertAndCast<SiteModelHost>("modelHost", value => value.RequireNotNull());
var definition = model.WithAssertAndCast<BusinessDataFieldDefinition>("model", value => value.RequireNotNull());

var spObject = FindField(modelHost, definition);

var assert = ServiceFactory.AssertService.NewAssert(model, definition, spObject);

assert
.ShouldBeEqual(m => m.Title, o => o.Title)
.ShouldBeEqual(m => m.InternalName, o => o.InternalName)
.ShouldBeEqual(m => m.Id, o => o.Id)
.ShouldBeEqual(m => m.Required, o => o.Required)
.ShouldBeEqual(m => m.Description, o => o.Description)
.ShouldBeEqual(m => m.FieldType, o => o.TypeAsString)
.ShouldBeEqual(m => m.Group, o => o.Group)

.ShouldBeEqual(m => m.SystemInstanceName, o => o.GetSystemInstanceName())
.ShouldBeEqual(m => m.EntityNamespace, o => o.GetEntityNamespace())
.ShouldBeEqual(m => m.EntityName, o => o.GetEntityName())
.ShouldBeEqual(m => m.BdcFieldName, o => o.GetBdcFieldName());

}
}

//internal static class BCSFieldExt
//{

//}
}
using SPMeta2.CSOM.ModelHandlers.Fields;
using SPMeta2.CSOM.ModelHosts;
using SPMeta2.Definitions;
using SPMeta2.Definitions.Base;
using SPMeta2.Definitions.Fields;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SPMeta2.Regression.CSOM.Utils;
using SPMeta2.Utils;
using Microsoft.SharePoint.Client;
using SPMeta2.Exceptions;
using System.Xml.Linq;

namespace SPMeta2.Regression.CSOM.Validation.Fields
{
public class BusinessDataFieldDefinitionValidator : ClientFieldDefinitionValidator
{
public override Type TargetType
{
get { return typeof(BusinessDataFieldDefinition); }
}

public override void DeployModel(object modelHost, DefinitionBase model)
{
base.DeployModel(modelHost, model);

var definition = model.WithAssertAndCast<BusinessDataFieldDefinition>("model", value => value.RequireNotNull());
var spObject = FindField(modelHost, definition);

var assert = ServiceFactory.AssertService
.NewAssert(model, definition, spObject);

assert
.ShouldBeEqual(m => m.SystemInstanceName, o => o.GetSystemInstanceName())
.ShouldBeEqual(m => m.EntityNamespace, o => o.GetEntityNamespace())
.ShouldBeEqual(m => m.EntityName, o => o.GetEntityName())
.ShouldBeEqual(m => m.BdcFieldName, o => o.GetBdcFieldName());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using SPMeta2.Definitions;
using SPMeta2.Exceptions;
using SPMeta2.Regression.Tests.Impl.Scenarios;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.VisualStudio.TestTools.UnitTesting;
using SPMeta2.BuiltInDefinitions;
using SPMeta2.Containers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.VisualStudio.TestTools.UnitTesting;
using SPMeta2.BuiltInDefinitions;
using SPMeta2.Containers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ M2ShowSettings $g_M2TestEnvironment

# CSOM, SSOM, O365
SetupSPMeta2RegressionTestEnvironment "SSOM"
SetupSPMeta2RegressionTestEnvironment "CSOM"
#SetupSPMeta2RegressionTestEnvironment "CSOM"
#SetupSPMeta2RegressionTestEnvironment "O365"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.SharePoint;
using SPMeta2.Definitions;
using SPMeta2.SSOM.ModelHandlers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.SharePoint;
using SPMeta2.Definitions;
using SPMeta2.Enumerations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.SharePoint;
using SPMeta2.Definitions;
using SPMeta2.Enumerations;
Expand Down
2 changes: 1 addition & 1 deletion SPMeta2/SPMeta2.SSOM.Standard/SPMeta2.SSOM.Standard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<Compile Include="ModelHosts\TermSetModelHost.cs" />
<Compile Include="ModelHosts\TermGroupModelHost.cs" />
<Compile Include="ModelHosts\TermStoreModelHost.cs" />
<Compile Include="ModelHandlers\Webparts\ProjectSummaryWebPartModelHandler.cs" />
<Compile Include="ModelHandlers\Webparts\ProjectSummaryWebPartModelHandler.cs" Condition="'$(spRuntime)'=='15' Or '$(Configuration)'=='Debug'" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="PublishingPageTemplates.Designer.cs">
<AutoGen>True</AutoGen>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ protected override void ProcessWebpartProperties(WebPart webpartInstance, WebPar

hiddenView.RowLimit = srcView.RowLimit;
hiddenView.Query = srcView.Query;
#if !NET35
hiddenView.JSLink = srcView.JSLink;

#endif
hiddenView.IncludeRootFolder = srcView.IncludeRootFolder;
hiddenView.Scope = srcView.Scope;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using SPMeta2.Attributes.Regression;
using SPMeta2.Definitions;

namespace SPMeta2.Standard.Definitions.Base
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

using SPMeta2.Attributes.Regression;
using SPMeta2.Definitions;

namespace SPMeta2.Standard.Definitions.Base
{
public abstract class ReusableItemDefinitionBase : ListItemDefinition
{
#region constructors

public ReusableItemDefinitionBase()
{
Overwrite = true;
AutomaticUpdate = true;
}

#endregion

#region properties

[ExpectValidation]
[DataMember]
public string Comments { get; set; }

[ExpectValidation]
[DataMember]
public string ContentCategory { get; set; }

[ExpectValidation]
[DataMember]
public bool AutomaticUpdate { get; set; }

[ExpectValidation]
[DataMember]
public bool ShowInDropDownMenu { get; set; }

#endregion
}
}
public abstract class ReusableItemDefinitionBase : ListItemDefinition
{
#region constructors

public ReusableItemDefinitionBase()
{
Overwrite = true;
AutomaticUpdate = true;
}

#endregion

#region properties

[ExpectValidation]
[DataMember]
public string Comments { get; set; }

[ExpectValidation]
[DataMember]
public string ContentCategory { get; set; }

[ExpectValidation]
[DataMember]
public bool AutomaticUpdate { get; set; }

[ExpectValidation]
[DataMember]
public bool ShowInDropDownMenu { get; set; }

#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

using SPMeta2.Attributes;
using SPMeta2.Attributes.Identity;
using SPMeta2.Attributes.Regression;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

using SPMeta2.Attributes;
using SPMeta2.Attributes.Identity;
using SPMeta2.Attributes.Regression;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace SPMeta2.Standard.Enumerations
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using SPMeta2.Definitions.Webparts;
using SPMeta2.Models;
using SPMeta2.Syntax.Default.Extensions;
Expand Down
2 changes: 1 addition & 1 deletion SPMeta2/SPMeta2/Definitions/ComposedLookItemDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

using SPMeta2.Attributes;
using SPMeta2.Attributes.Identity;
using SPMeta2.Attributes.Regression;
Expand Down

0 comments on commit 21d6b48

Please sign in to comment.