Skip to content

Commit c5d78bc

Browse files
committed
Fix typos
1 parent 0a45752 commit c5d78bc

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

test-integration/Microsoft.Azure.WebJobs.Extensions.OpenApi.Document.Tests/Get_ApplicationJson_DataType_Tests.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void Given_OpenApiDocument_Then_It_Should_Return_OperationResponseContent
4545
}
4646

4747
[DataTestMethod]
48-
[DataRow("/get-applicationjson-datatype", "get", "200", "application/json", "dataTypeClass")]
48+
[DataRow("/get-applicationjson-datatype", "get", "200", "application/json", "dataTypeObjectModel")]
4949
public void Given_OpenApiDocument_Then_It_Should_Return_OperationResponseContentTypeSchema(string path, string operationType, string responseCode, string contentType, string reference)
5050
{
5151
var content = this._doc["paths"][path][operationType]["responses"][responseCode]["content"];
@@ -55,7 +55,7 @@ public void Given_OpenApiDocument_Then_It_Should_Return_OperationResponseContent
5555
@ref.Value<string>().Should().Be($"#/components/schemas/{reference}");
5656
}
5757
[DataTestMethod]
58-
[DataRow("dataTypeClass", "object")]
58+
[DataRow("dataTypeObjectModel", "object")]
5959
public void Given_OpenApiDocument_Then_It_Should_Return_ComponentSchema(string @ref, string refType)
6060
{
6161
var schemas = this._doc["components"]["schemas"];
@@ -67,18 +67,18 @@ public void Given_OpenApiDocument_Then_It_Should_Return_ComponentSchema(string @
6767
}
6868

6969
[DataTestMethod]
70-
[DataRow("dataTypeClass", "dateTimeValue1", "string", "date-time", false)]
71-
[DataRow("dataTypeClass", "dateTimeValue2", "string", "date", false)]
72-
[DataRow("dataTypeClass", "dateTimeValue3", "string", "time", false)]
73-
[DataRow("dataTypeClass", "nullableDateTimeValue1", "string", "date-time", true)]
74-
[DataRow("dataTypeClass", "nullableDateTimeValue2", "string", "date", true)]
75-
[DataRow("dataTypeClass", "nullableDateTimeValue3", "string", "time", true)]
76-
[DataRow("dataTypeClass", "dateTimeOffsetValue1", "string", "date-time", false)]
77-
[DataRow("dataTypeClass", "dateTimeOffsetValue2", "string", "date", false)]
78-
[DataRow("dataTypeClass", "dateTimeOffsetValue3", "string", "time", false)]
79-
[DataRow("dataTypeClass", "nullableDateTimeOffsetValue1", "string", "date-time", true)]
80-
[DataRow("dataTypeClass", "nullableDateTimeOffsetValue2", "string", "date", true)]
81-
[DataRow("dataTypeClass", "nullableDateTimeOffsetValue3", "string", "time", true)]
70+
[DataRow("dataTypeObjectModel", "dateTimeValue1", "string", "date-time", false)]
71+
[DataRow("dataTypeObjectModel", "dateTimeValue2", "string", "date", false)]
72+
[DataRow("dataTypeObjectModel", "dateTimeValue3", "string", "time", false)]
73+
[DataRow("dataTypeObjectModel", "nullableDateTimeValue1", "string", "date-time", true)]
74+
[DataRow("dataTypeObjectModel", "nullableDateTimeValue2", "string", "date", true)]
75+
[DataRow("dataTypeObjectModel", "nullableDateTimeValue3", "string", "time", true)]
76+
[DataRow("dataTypeObjectModel", "dateTimeOffsetValue1", "string", "date-time", false)]
77+
[DataRow("dataTypeObjectModel", "dateTimeOffsetValue2", "string", "date", false)]
78+
[DataRow("dataTypeObjectModel", "dateTimeOffsetValue3", "string", "time", false)]
79+
[DataRow("dataTypeObjectModel", "nullableDateTimeOffsetValue1", "string", "date-time", true)]
80+
[DataRow("dataTypeObjectModel", "nullableDateTimeOffsetValue2", "string", "date", true)]
81+
[DataRow("dataTypeObjectModel", "nullableDateTimeOffsetValue3", "string", "time", true)]
8282
public void Given_OpenApiDocument_Then_It_Should_Return_ComponentSchemaProperty(string @ref, string propertyName, string propertyType, string propertyFormat, bool propertyNullable)
8383
{
8484
var properties = this._doc["components"]["schemas"][@ref]["properties"];

test-integration/Microsoft.Azure.WebJobs.Extensions.OpenApi.Document.Tests/Get_ApplicationJson_Object_Tests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void Given_OpenApiDocument_Then_It_Should_Return_OperationResponseContent
4444
}
4545

4646
[DataTestMethod]
47-
[DataRow("/get-applicationjson-object", "get", "200", "application/json", "singleStringObject")]
47+
[DataRow("/get-applicationjson-object", "get", "200", "application/json", "stringObjectModel")]
4848
public void Given_OpenApiDocument_Then_It_Should_Return_OperationResponseContentTypeSchema(string path, string operationType, string responseCode, string contentType, string reference)
4949
{
5050
var content = this._doc["paths"][path][operationType]["responses"][responseCode]["content"];
@@ -55,7 +55,7 @@ public void Given_OpenApiDocument_Then_It_Should_Return_OperationResponseContent
5555
}
5656

5757
[DataTestMethod]
58-
[DataRow("singleStringObject", "object")]
58+
[DataRow("stringObjectModel", "object")]
5959
public void Given_OpenApiDocument_Then_It_Should_Return_ComponentSchema(string @ref, string refType)
6060
{
6161
var schemas = this._doc["components"]["schemas"];
@@ -67,7 +67,7 @@ public void Given_OpenApiDocument_Then_It_Should_Return_ComponentSchema(string @
6767
}
6868

6969
[DataTestMethod]
70-
[DataRow("singleStringObject", "object", "value", "string")]
70+
[DataRow("stringObjectModel", "object", "value", "string")]
7171
public void Given_OpenApiDocument_Then_It_Should_Return_ComponentSchemaProperty(string @ref, string refType, string propertyName, string propertyType)
7272
{
7373
var properties = this._doc["components"]["schemas"][@ref]["properties"];

0 commit comments

Comments
 (0)