Update tests for Entityset paths operations descriptions

This commit is contained in:
Irvine Sunday 2021-04-27 01:22:08 +03:00
parent 2b31063f7a
commit 206e9a4129
2 changed files with 8 additions and 2 deletions

View file

@ -332,13 +332,16 @@ namespace Microsoft.OpenApi.OData.Operation.Tests
<edmx:DataServices>
<Schema Namespace=""NS"" xmlns=""http://docs.oasis-open.org/odata/ns/edm"">
<EntityType Name=""Customer"">
<Annotation Term=""Org.OData.Core.V1.Description"" String=""A business customer."" />
<Key>
<PropertyRef Name=""ID"" />
</Key>
<Property Name=""ID"" Type=""Edm.Int32"" Nullable=""false"" />
</EntityType>
<EntityContainer Name =""Default"">
<EntitySet Name=""Customers"" EntityType=""NS.Customer"" />
<EntitySet Name=""Customers"" EntityType=""NS.Customer"">
<Annotation Term=""Org.OData.Core.V1.Description"" String=""Collection of business customers."" />
</EntitySet>
</EntityContainer>
<Annotations Target=""NS.Default/Customers"">
{0}

View file

@ -59,6 +59,7 @@ namespace Microsoft.OpenApi.OData.Operation.Tests
// Assert
Assert.NotNull(post);
Assert.Equal("Add new entity to " + entitySet.Name, post.Summary);
Assert.Equal("Collection of business customers.", post.Description);
Assert.NotNull(post.Tags);
var tag = Assert.Single(post.Tags);
Assert.Equal("Customers.Customer", tag.Name);
@ -240,7 +241,9 @@ namespace Microsoft.OpenApi.OData.Operation.Tests
<Property Name=""ID"" Type=""Edm.Int32"" Nullable=""false"" />
</EntityType>
<EntityContainer Name =""Default"">
<EntitySet Name=""Customers"" EntityType=""NS.Customer"" />
<EntitySet Name=""Customers"" EntityType=""NS.Customer"">
<Annotation Term=""Org.OData.Core.V1.Description"" String=""Collection of business customers."" />
</EntitySet>
</EntityContainer>
<Annotations Target=""NS.Customer"">
{1}