Skip to content

unable to call grpc method with namespace #1227

@GomesNayagam

Description

@GomesNayagam
//option csharp_namespace = "NarrowTest";

package Policy;

service PolicyService { }
            server
                //.AddProtoDefinition(id, protoDefinitionText)
                .Given(
                    Request
                        .Create()
                        .UsingPost()
                        .WithHttpVersion("2")
                        .WithPath("/NarrowTest.Policy.PolicyService/GetVersion")
                )
                .WithProtoDefinition(id)
                .RespondWith(
                    Response
                        .Create()
                        .WithHeader("Content-Type", "application/grpc")
                        .WithTrailingHeader("grpc-status", "0")
                        .WithBodyAsProtoBuf(
                            protoDefinition,
                            "Policy.GetVersionResponse",
                            new { Version = "DevTr1" }
                        )
                        .WithTransformer()
                );

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions