Exemplo n.º 1
0
 public void GenerateProtoFieldName(
     ParameterDirection parameterDirection, string abiParameterName, string expectedFieldName, int anonymousFieldCounter = 0)
 {
     Assert.Equal(
         expectedFieldName,
         ABIToProtoTemplateUtility.GenerateProtoFieldName(
             abiParameterName, 1, parameterDirection, ref anonymousFieldCounter));
 }
        public string GenerateOutputMessageSchema()
        {
            if (!Model.HasOutputParameters)
            {
                return(string.Empty);
            }

            return(ABIToProtoTemplateUtility.GenerateMessageSchema(
                       Model.Name, "Response", GetOutputParameters(), ParameterDirection.Output));
        }
 public string GenerateInputMessageSchema()
 {
     return(ABIToProtoTemplateUtility.GenerateMessageSchema(
                Model.Name, Model.ClassNameSuffix, GetInputParameters(), ParameterDirection.Input));
 }