public void TestComposeActionNameWithParameters() { OpenApiPathItem pathItem = doc.Paths["/api/Entities/link"]; string actionName = NameComposer.ComposeActionName(pathItem.Operations[OperationType.Put], OperationType.Put.ToString()); Assert.Equal("EntitiesPutByIdAndRelationship", actionName); }
public void TestComposeActionName() { OpenApiPathItem pathItem = doc.Paths["/api/Values"]; string actionName = NameComposer.ComposeActionName(pathItem.Operations[OperationType.Get], OperationType.Get.ToString()); Assert.Equal("ValuesGet", actionName); }