@@ -378,7 +378,7 @@ public void CreateOperationForComposableOverloadEdmFunctionReturnsCorrectOperati
378
378
379
379
if ( enableOperationId )
380
380
{
381
- Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-c53d " , operation1 . OperationId ) ;
381
+ Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-6b6d " , operation1 . OperationId ) ;
382
382
Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-4d93" , operation2 . OperationId ) ;
383
383
Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-a2b2" , operation3 . OperationId ) ;
384
384
Assert . Equal ( "Customers.Customer.MyFunction1.MyFunction2-7bea" , operation4 . OperationId ) ;
@@ -575,35 +575,35 @@ public void CreateOperationForFunctionWithDateTimeParametersReturnsCorrectPathIt
575
575
}
576
576
577
577
[ Fact ]
578
- public void CreateFunctionOperationWithAlternateKeyReturnsCorrectOperationId ( )
579
- {
580
- // Arrange
578
+ public void CreateFunctionOperationWithAlternateKeyReturnsCorrectOperationId ( )
579
+ {
580
+ // Arrange
581
581
IEdmModel model = EdmModelHelper . GraphBetaModel ;
582
- ODataContext context = new ( model , new OpenApiConvertSettings ( )
582
+ ODataContext context = new ( model , new OpenApiConvertSettings ( )
583
583
{
584
- EnableOperationId = true
584
+ EnableOperationId = true
585
585
} ) ;
586
586
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
+
601
601
// 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 ) ;
607
607
}
608
608
}
609
- }
609
+ }
0 commit comments