Skip to content

Commit

Permalink
Merge pull request #10 from contentstack/embedded_object
Browse files Browse the repository at this point in the history
Embedded object
  • Loading branch information
uttamukkoji authored Apr 6, 2021
2 parents 411fcb4 + c394197 commit 970903c
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Contentstack.AspNetCore/Contentstack.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Copyright>Copyright (c) 2012-2020 Contentstack (http://app.contentstack.com). All Rights Reserved</Copyright>
<PackageProjectUrl>https://github.com/contentstack/contentstack-dotnet</PackageProjectUrl>
<PackageTags>v2.5.0</PackageTags>
<ReleaseVersion>2.5.0</ReleaseVersion>
<ReleaseVersion>2.6.0</ReleaseVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
Expand Down
2 changes: 1 addition & 1 deletion Contentstack.Core.Tests/Contentstack.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netcoreapp2.1</TargetFramework>

<IsPackable>false</IsPackable>
<ReleaseVersion>2.5.0</ReleaseVersion>
<ReleaseVersion>2.6.0</ReleaseVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
24 changes: 24 additions & 0 deletions Contentstack.Core.Tests/QueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,30 @@ public async Task Limit()
}


[Fact]
public async Task IncludeEmbeddedItems()
{
ContentType contenttype = client.ContentType("rte_embed");
Query query = contenttype.Query();
query.includeEmbeddedItems();
var result = await query.Find<SourceModelIncludeRef>();
if (result == null && result.Items.Count() == 0)
{
Assert.False(true, "Query.Exec is not match with expected result.");
}
else
{
if (result.Items != null)
{
Assert.True(true);
}
else
{
Assert.False(true, "Doesn't mached the expected count.");
}
}
}

[Fact]
public async Task IncludeReference()
{
Expand Down
9 changes: 5 additions & 4 deletions Contentstack.Core/Contentstack.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<PackageId>contentstack.csharp</PackageId>
<Authors>Contentstack</Authors>
<Description>.NET SDK for the Contentstack Content Delivery API.</Description>
<PackageVersion>2.5.0</PackageVersion>
<PackageVersion>2.6.0</PackageVersion>
<Owners>Contentstack</Owners>
<PackageReleaseNotes>Publish content fallback </PackageReleaseNotes>
<PackageReleaseNotes>Embedded Objects fearure added</PackageReleaseNotes>
<Copyright>Copyright © 2012-2020 Contentstack. All Rights Reserved</Copyright>
<PackOnBuild>true</PackOnBuild>
<PackageTags>v2.5.0</PackageTags>
<PackageTags>v2.6.0</PackageTags>
<PackageProjectUrl>https://github.com/contentstack/contentstack-dotnet</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/contentstack/contentstack-dotnet/blob/master/LICENSE</PackageLicenseUrl>
<ReleaseVersion>2.5.0</ReleaseVersion>
<ReleaseVersion>2.6.0</ReleaseVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand All @@ -29,6 +29,7 @@
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.5" />
<PackageReference Include="Markdig" Version="0.22.0" />
<PackageReference Include="contentstack.utils" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Internals\" />
Expand Down
2 changes: 1 addition & 1 deletion Contentstack.Net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ Global
$0.XmlFormattingPolicy = $9
$9.scope = application/xml
$0.StandardHeader = $10
version = 2.5.0
version = 2.6.0
EndGlobalSection
EndGlobal
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "3.1.404"
}
}

0 comments on commit 970903c

Please sign in to comment.