Skip to content

Commit

Permalink
Update client proxy file
Browse files Browse the repository at this point in the history
  • Loading branch information
chinadragon0515 committed May 26, 2016
1 parent 027e188 commit b8e5abd
Show file tree
Hide file tree
Showing 7 changed files with 1,777 additions and 1,165 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Linq;
using Microsoft.OData.Client;
using Microsoft.OData.Service.Sample.Tests.ServiceReference;
using Microsoft.OData.Service.Sample.Trippin.Models;
using Xunit;

namespace Microsoft.OData.Service.Sample.Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Microsoft.OData.Service.Sample.Trippin\Microsoft.OData.Service.Sample.Trippin.csproj">
<Project>{b379640e-9064-438d-8da5-6f7b394c2c46}</Project>
<Name>Microsoft.OData.Service.Sample.Trippin</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Linq;
using Microsoft.OData.Client;
using Microsoft.OData.Edm.Library;
using Microsoft.OData.Service.Sample.Tests.ServiceReference;
using Microsoft.OData.Service.Sample.Trippin.Models;
using Xunit;

namespace Microsoft.OData.Service.Sample.Tests
Expand All @@ -33,7 +33,7 @@ public void CURDEntityWithDateProperty()

this.TestClientContext.AddToPeople(person);
this.TestClientContext.SaveChanges();
int personId = person.PersonId;
long? personId = person.PersonId;

// Count this entity
var count = this.TestClientContext.People.Count();
Expand Down Expand Up @@ -87,7 +87,7 @@ public void UQDateProperty()

this.TestClientContext.AddToPeople(person);
this.TestClientContext.SaveChanges();
int personId = person.PersonId;
long? personId = person.PersonId;

// Query a property
var birthDate = this.TestClientContext.People
Expand Down Expand Up @@ -264,7 +264,7 @@ public void UQTimeOfDayProperty()

this.TestClientContext.AddToPeople(person);
this.TestClientContext.SaveChanges();
int personId = person.PersonId;
long? personId = person.PersonId;

// Query a property
var birthTime = this.TestClientContext.People
Expand Down Expand Up @@ -303,7 +303,7 @@ public void QueryOptionsOnTimeOfDayProperty()

this.TestClientContext.AddToPeople(person);
this.TestClientContext.SaveChanges();
int personId = person.PersonId;
long? personId = person.PersonId;

// Filter this entity
var persons = this.TestClientContext.People
Expand Down Expand Up @@ -358,7 +358,7 @@ public void QueryOptionsOnTimeOfDayProperty()
Assert.Equal(3, people2.Count);

// skip
people2 = this.TestClientContext.People.Skip(personId - 1).ToList();
people2 = this.TestClientContext.People.Skip((int)(personId - 1)).ToList();
Assert.Equal(birthTime, people2.First().BirthTime);
Assert.Equal(birthTime, people2.First().BirthTime2);

Expand Down Expand Up @@ -386,7 +386,7 @@ public void CURDEntityWithDateTimeOffsetProperty()

this.TestClientContext.AddToPeople(person);
this.TestClientContext.SaveChanges();
int personId = person.PersonId;
long? personId = person.PersonId;

// Count this entity
var count = this.TestClientContext.People.Count();
Expand Down Expand Up @@ -440,7 +440,7 @@ public void UQDateTimeOffsetProperty()

this.TestClientContext.AddToPeople(person);
this.TestClientContext.SaveChanges();
int personId = person.PersonId;
long? personId = person.PersonId;

// Query a property
var birthDateTime = this.TestClientContext.People
Expand Down Expand Up @@ -479,7 +479,7 @@ public void QueryOptionsOnDateTimeOffsetProperty()

this.TestClientContext.AddToPeople(person);
this.TestClientContext.SaveChanges();
int personId = person.PersonId;
long? personId = person.PersonId;

// Filter this entity
var persons = this.TestClientContext.People
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;
using Microsoft.OData.Service.Sample.Tests.ServiceReference;
using Microsoft.OData.Service.Sample.Trippin.Models;
using Xunit;

namespace Microsoft.OData.Service.Sample.Tests
{
public abstract class TrippinE2ETestBase : E2ETestBase<TrippinModel>, IClassFixture<TrippinServiceFixture>
public abstract class TrippinE2ETestBase : E2ETestBase<TrippinDataServiceContext>, IClassFixture<TrippinServiceFixture>
{
protected TrippinE2ETestBase()
: base(new Uri("http://localhost:18384/api/Trippin/"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Linq;
using Microsoft.OData.Client;
using Microsoft.OData.Core;
using Microsoft.OData.Service.Sample.Tests.ServiceReference;
using Microsoft.OData.Service.Sample.Trippin.Models;
using Xunit;

namespace Microsoft.OData.Service.Sample.Tests
Expand Down Expand Up @@ -235,7 +235,7 @@ public void UQProperty()

this.TestClientContext.AddToPeople(person);
this.TestClientContext.SaveChanges();
int personId = person.PersonId;
long? personId = person.PersonId;

// Query a property
var lastName = this.TestClientContext.People
Expand Down Expand Up @@ -665,7 +665,7 @@ public void CURDCollectionNavigationPropertyAndRef()

this.TestClientContext.AddToPeople(person);
this.TestClientContext.SaveChanges();
int personId = person.PersonId;
long? personId = person.PersonId;

var startDate = DateTime.Now;
Trip trip1 = new Trip()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;
using Microsoft.OData.Service.Sample.Tests.ServiceReference;
using Microsoft.OData.Service.Sample.Trippin.Models;
using Xunit;

namespace Microsoft.OData.Service.Sample.Tests
{
public class TrippinInMemoryE2ETest : E2ETestBase<TrippinModel>, IClassFixture<TrippinServiceFixture>
public class TrippinInMemoryE2ETest : E2ETestBase<TrippinDataServiceContext>, IClassFixture<TrippinServiceFixture>
{
private const string baseUri = "http://localhost:21248/api/Trippin/";

Expand Down

0 comments on commit b8e5abd

Please sign in to comment.