-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Port Duration tests * Port PrimitiveValueFormatTest * Port PrimitiveKeysValuesTests
- Loading branch information
1 parent
8fc6c3f
commit 567fe76
Showing
12 changed files
with
4,718 additions
and
0 deletions.
There are no files selected for viewing
2,151 changes: 2,151 additions & 0 deletions
2,151
...nt/Microsoft.OData.Client.E2E.Tests/Common/Client/PrimitiveKeys/PrimitiveKeysContainer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
110 changes: 110 additions & 0 deletions
110
...soft.OData.Client.E2E.Tests/Common/Client/PrimitiveKeys/PrimitiveKeysODataServiceCsdl.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"> | ||
<edmx:DataServices> | ||
<Schema Namespace="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys" xmlns="http://docs.oasis-open.org/odata/ns/edm"> | ||
<EntityType Name="EdmBinary"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Binary" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmBoolean"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Boolean" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmByte"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Byte" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmDecimal"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Decimal" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmDouble"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Double" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmSingle"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Single" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmGuid"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Guid" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmInt16"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Int16" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmInt32"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Int32" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmInt64"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Int64" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmString"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.String" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmTime"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Duration" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="EdmDateTimeOffset"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.DateTimeOffset" Nullable="false" /> | ||
</EntityType> | ||
<EntityType Name="Folder"> | ||
<Key> | ||
<PropertyRef Name="Id" /> | ||
</Key> | ||
<Property Name="Id" Type="Edm.Int32" Nullable="false" /> | ||
<Property Name="Name" Type="Edm.String" /> | ||
<NavigationProperty Name="Parent" Type="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.Folder" Partner="Parent" /> | ||
</EntityType> | ||
<EntityContainer Name="Container"> | ||
<EntitySet Name="EdmBinarySet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmBinary" /> | ||
<EntitySet Name="EdmBooleanSet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmBoolean" /> | ||
<EntitySet Name="EdmByteSet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmByte" /> | ||
<EntitySet Name="EdmDecimalSet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmDecimal" /> | ||
<EntitySet Name="EdmDoubleSet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmDouble" /> | ||
<EntitySet Name="EdmSingleSet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmSingle" /> | ||
<EntitySet Name="EdmGuidSet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmGuid" /> | ||
<EntitySet Name="EdmInt16Set" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmInt16" /> | ||
<EntitySet Name="EdmInt32Set" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmInt32" /> | ||
<EntitySet Name="EdmInt64Set" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmInt64" /> | ||
<EntitySet Name="EdmStringSet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmString" /> | ||
<EntitySet Name="EdmTimeSet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmTime" /> | ||
<EntitySet Name="EdmDateTimeOffsetSet" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.EdmDateTimeOffset" /> | ||
<EntitySet Name="Folders" EntityType="Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys.Folder"> | ||
<NavigationPropertyBinding Path="Parent" Target="Folders" /> | ||
</EntitySet> | ||
</EntityContainer> | ||
</Schema> | ||
</edmx:DataServices> | ||
</edmx:Edmx> |
89 changes: 89 additions & 0 deletions
89
...crosoft.OData.Client.E2E.Tests/Common/Server/PrimitiveKeys/PrimitiveKeyValuesDataModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
//----------------------------------------------------------------------------- | ||
// <copyright file="PrimitiveKeyValuesDataModel.cs" company=".NET Foundation"> | ||
// Copyright (c) .NET Foundation and Contributors. All rights reserved. | ||
// See License.txt in the project root for license information. | ||
// </copyright> | ||
//------------------------------------------------------------------------------ | ||
|
||
using EfKey = System.ComponentModel.DataAnnotations.KeyAttribute; | ||
|
||
namespace Microsoft.OData.Client.E2E.Tests.Common.Server.PrimitiveKeys | ||
{ | ||
[Key("Id")] | ||
public class EdmBinary | ||
{ | ||
public Byte[] Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmBoolean | ||
{ | ||
public Boolean Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmByte | ||
{ | ||
public Byte Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmDecimal | ||
{ | ||
public Decimal Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmDouble | ||
{ | ||
public Double Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmSingle | ||
{ | ||
public Single Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmGuid | ||
{ | ||
public Guid Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmInt16 | ||
{ | ||
public Int16 Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmInt32 | ||
{ | ||
public Int32 Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmInt64 | ||
{ | ||
public Int64 Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmString | ||
{ | ||
public String Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmTime | ||
{ | ||
public TimeSpan Id { get; set; } | ||
} | ||
|
||
[Key("Id")] | ||
public class EdmDateTimeOffset | ||
{ | ||
public DateTimeOffset Id { get; set; } | ||
} | ||
} |
Oops, something went wrong.