Skip to content

Commit e74cc84

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Updated expected test result
1 parent 5dd584b commit e74cc84

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

test/Microsoft.OpenAPI.OData.Reader.Tests/Operation/EdmFunctionOperationHandlerTests.cs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public void CreateOperationForComposableOverloadEdmFunctionReturnsCorrectOperati
378378

379379
if (enableOperationId)
380380
{
381-
Assert.Equal("Customers.Customer.MyFunction1.MyFunction2-c53d", operation1.OperationId);
381+
Assert.Equal("Customers.Customer.MyFunction1.MyFunction2-6b6d", operation1.OperationId);
382382
Assert.Equal("Customers.Customer.MyFunction1.MyFunction2-4d93", operation2.OperationId);
383383
Assert.Equal("Customers.Customer.MyFunction1.MyFunction2-a2b2", operation3.OperationId);
384384
Assert.Equal("Customers.Customer.MyFunction1.MyFunction2-7bea", operation4.OperationId);
@@ -575,35 +575,35 @@ public void CreateOperationForFunctionWithDateTimeParametersReturnsCorrectPathIt
575575
}
576576

577577
[Fact]
578-
public void CreateFunctionOperationWithAlternateKeyReturnsCorrectOperationId()
579-
{
580-
// Arrange
578+
public void CreateFunctionOperationWithAlternateKeyReturnsCorrectOperationId()
579+
{
580+
// Arrange
581581
IEdmModel model = EdmModelHelper.GraphBetaModel;
582-
ODataContext context = new(model, new OpenApiConvertSettings()
582+
ODataContext context = new(model, new OpenApiConvertSettings()
583583
{
584-
EnableOperationId = true
584+
EnableOperationId = true
585585
});
586586

587-
IEdmSingleton singleton = model.EntityContainer.FindSingleton("communications");
588-
IEdmEntityType entityType = model.SchemaElements.OfType<IEdmEntityType>().First(c => c.Name == "cloudCommunications");
589-
IEdmNavigationProperty navProp = entityType.DeclaredNavigationProperties().First(c => c.Name == "onlineMeetings");
590-
IEdmOperation action = model.SchemaElements.OfType<IEdmOperation>().First(f => f.Name == "sendVirtualAppointmentReminderSms");
591-
IDictionary<string, string> keyMappings = new Dictionary<string, string> { { "joinWebUrl", "joinWebUrl" } };
592-
593-
ODataPath path = new(new ODataNavigationSourceSegment(singleton),
594-
new ODataNavigationPropertySegment(navProp),
595-
new ODataKeySegment(entityType, keyMappings)
596-
{
597-
IsAlternateKey = true
598-
},
599-
new ODataOperationSegment(action));
600-
587+
IEdmSingleton singleton = model.EntityContainer.FindSingleton("communications");
588+
IEdmEntityType entityType = model.SchemaElements.OfType<IEdmEntityType>().First(c => c.Name == "cloudCommunications");
589+
IEdmNavigationProperty navProp = entityType.DeclaredNavigationProperties().First(c => c.Name == "onlineMeetings");
590+
IEdmOperation action = model.SchemaElements.OfType<IEdmOperation>().First(f => f.Name == "sendVirtualAppointmentReminderSms");
591+
IDictionary<string, string> keyMappings = new Dictionary<string, string> { { "joinWebUrl", "joinWebUrl" } };
592+
593+
ODataPath path = new(new ODataNavigationSourceSegment(singleton),
594+
new ODataNavigationPropertySegment(navProp),
595+
new ODataKeySegment(entityType, keyMappings)
596+
{
597+
IsAlternateKey = true
598+
},
599+
new ODataOperationSegment(action));
600+
601601
// Act
602-
var operation = _operationHandler.CreateOperation(context, path);
603-
604-
// Assert
605-
Assert.NotNull(operation);
606-
Assert.Equal("communications.onlineMeetings.joinWebUrl.sendVirtualAppointmentReminderSms", operation.OperationId);
602+
var operation = _operationHandler.CreateOperation(context, path);
603+
604+
// Assert
605+
Assert.NotNull(operation);
606+
Assert.Equal("communications.onlineMeetings.joinWebUrl.sendVirtualAppointmentReminderSms", operation.OperationId);
607607
}
608608
}
609-
}
609+
}

0 commit comments

Comments
 (0)