示例#1
0
        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);
        }
示例#2
0
        public void TestComposeActionName()
        {
            OpenApiPathItem pathItem   = doc.Paths["/api/Values"];
            string          actionName = NameComposer.ComposeActionName(pathItem.Operations[OperationType.Get], OperationType.Get.ToString());

            Assert.Equal("ValuesGet", actionName);
        }