Skip to content

Commit

Permalink
Merge pull request #3 from contentstack/develop
Browse files Browse the repository at this point in the history
Multi Content type feature
  • Loading branch information
uttamukkoji authored Jul 29, 2019
2 parents 525d8b0 + 6ba496e commit 357f816
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 44 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ packages/
*.config
*.nupkg
*.nuspec
*.trx
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
### Version: 2.0
### Version: 2.1.0
#### Date: Jul-29-2019

##### New Features:
- Query
- added method 'includeReferenceContentTypeUid'
- Entry
- added method 'includeReferenceContentTypeUid'

### Version: 2.0
#### Date: Jun-28-2019

##### New Features:
Expand Down
4 changes: 2 additions & 2 deletions Contentstack.AspNetCore/Contentstack.AspNetCore.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
<PackOnBuild>true</PackOnBuild>
<PackageId>contentstack.aspnetcore</PackageId>
<Authors>Contentstack</Authors>
<Owners>Contentstack</Owners>
<ReleaseVersion>2.0</ReleaseVersion>
<ReleaseVersion>2.1.0</ReleaseVersion>
<PackageVersion>1.0.0</PackageVersion>
<Description>Main release</Description>
<Copyright>Copyright (c) 2012-2019 Contentstack (http://app.contentstack.com). All Rights Reserved
Expand Down
4 changes: 2 additions & 2 deletions Contentstack.Core.Tests/Contentstack.Core.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>

<IsPackable>false</IsPackable>
<ReleaseVersion>2.0</ReleaseVersion>
<ReleaseVersion>2.1.0</ReleaseVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
72 changes: 36 additions & 36 deletions Contentstack.Core.Tests/SyncStackTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ public class SyncStackTest
ContentstackClient client = StackConfig.GetSyncStack();

//STAG
//String PaginationToken = "blt222be844e75a1fca332e39";
//String SyncToken = "blt529b16590d4646bfce31ce";
String PaginationToken = "blt222be844e75a1fca332e39";
String SyncToken = "blt37f6aa8e41cbb327c6c6d3";


//PROD
String PaginationToken = "blt99c1e34e65f6cc0fd1d82b";
String SyncToken = "blt08854bd48e43a740951809";
// //PROD
// String PaginationToken = "blt99c1e34e65f6cc0fd1d82b";
// String SyncToken = "blt08854bd48e43a740951809";
[Fact]
public async Task SyncInit()
{
Expand Down Expand Up @@ -111,36 +111,36 @@ public async Task SyncTypeWithStartFrom()
}
}

[Fact]
public async Task SyncPaginationToken()
{

SyncStack result = await client.SyncPaginationToken(PaginationToken);

if (result == null)
{
Assert.False(true, "Entry.Fetch is not match with expected result.");
}
else
{
Assert.True(true);
}
}

[Fact]
public async Task SyncToketest()
{

SyncStack result = await client.SyncToken(SyncToken);

if (result == null)
{
Assert.False(true, "Entry.Fetch is not match with expected result.");
}
else
{
Assert.True(true);
}
}
// [Fact]
// public async Task SyncPaginationToken()
// {

// SyncStack result = await client.SyncPaginationToken(PaginationToken);

// if (result == null)
// {
// Assert.False(true, "Entry.Fetch is not match with expected result.");
// }
// else
// {
// Assert.True(true);
// }
// }

// [Fact]
// public async Task SyncToketest()
// {

// SyncStack result = await client.SyncToken(SyncToken);

// if (result == null)
// {
// Assert.False(true, "Entry.Fetch is not match with expected result.");
// }
// else
// {
// Assert.True(true);
// }
// }
}
}
8 changes: 5 additions & 3 deletions Contentstack.Core/Contentstack.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
Expand All @@ -8,11 +8,13 @@
<PackageVersion>2.0</PackageVersion>
<Owners>Contentstack</Owners>
<PackageReleaseNotes>Query Find method, Entry Fetch method returns ContentstackCollection of Model.</PackageReleaseNotes>
<ReleaseVersion>2.0</ReleaseVersion>
<ReleaseVersion>2.1.0</ReleaseVersion>
<Copyright>Copyright © 2012-2019 Contentstack. All Rights Reserved
</Copyright>
<PackOnBuild>true</PackOnBuild>
<PackageTags>v2.0</PackageTags>
<PackageTags>v2.1.0</PackageTags>
<PackageProjectUrl>https://github.com/contentstack/contentstack-dotnet</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/contentstack/contentstack-dotnet/blob/master/LICENSE</PackageLicenseUrl>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down

0 comments on commit 357f816

Please sign in to comment.