Skip to content

Commit 9d98eb0

Browse files
authored
change some example code
1 parent 77b217e commit 9d98eb0

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

test/WireMock.Net.Tests/Grpc/WireMockServerTests.Grpc.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using Google.Protobuf.WellKnownTypes;
1313
using Greet;
1414
using Grpc.Net.Client;
15-
using NarrowIntegrationTest.Lookup;
15+
using ExampleIntegrationTest.Lookup;
1616
using WireMock.Constants;
1717
using WireMock.Matchers;
1818
using WireMock.RequestBuilders;
@@ -668,7 +668,7 @@ public async Task WireMockServer_WithBodyAsProtoBuf_Enum_UsingPolicyGrpcGenerate
668668
.RespondWith(Response.Create()
669669
.WithHeader("Content-Type", "application/grpc")
670670
.WithTrailingHeader("grpc-status", "0")
671-
.WithBodyAsProtoBuf(definition, "NarrowIntegrationTest.Lookup.GetVersionResponse",
671+
.WithBodyAsProtoBuf(definition, "ExampleIntegrationTest.Lookup.GetVersionResponse",
672672
new GetVersionResponse
673673
{
674674
Version = version,
@@ -677,9 +677,9 @@ public async Task WireMockServer_WithBodyAsProtoBuf_Enum_UsingPolicyGrpcGenerate
677677
Seconds = seconds,
678678
Nanos = nanos
679679
},
680-
Client = new NarrowIntegrationTest.Lookup.Client
680+
Client = new ExampleIntegrationTest.Lookup.Client
681681
{
682-
ClientName = NarrowIntegrationTest.Lookup.Client.Types.Clients.BillingCenter,
682+
ClientName = ExampleIntegrationTest.Lookup.Client.Types.Clients.Test,
683683
CorrelationId = correlationId
684684
}
685685
}
@@ -695,7 +695,7 @@ public async Task WireMockServer_WithBodyAsProtoBuf_Enum_UsingPolicyGrpcGenerate
695695
// Assert
696696
reply.Version.Should().Be(version);
697697
reply.DateHired.Should().Be(new Timestamp { Seconds = seconds, Nanos = nanos });
698-
reply.Client.ClientName.Should().Be(NarrowIntegrationTest.Lookup.Client.Types.Clients.BillingCenter);
698+
reply.Client.ClientName.Should().Be(ExampleIntegrationTest.Lookup.Client.Types.Clients.Test);
699699
reply.Client.CorrelationId.Should().Be(correlationId);
700700
}
701701

test/WireMock.Net.Tests/Grpc/policy.proto

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
syntax = "proto3";
22

3-
option csharp_namespace = "NarrowIntegrationTest.Lookup";
3+
option csharp_namespace = "ExampleIntegrationTest.Lookup";
44

55
import "google/protobuf/timestamp.proto";
66

@@ -24,17 +24,8 @@ message Client {
2424
string CorrelationId = 1;
2525
enum Clients {
2626
Unknown = 0;
27-
QMS = 1;
28-
BillingCenter = 2;
29-
PAS = 3;
30-
Payroll = 4;
31-
Portal = 5;
32-
SFO = 6;
33-
QuoteAndBind = 7;
34-
LegacyConversion = 8;
35-
BindNow = 9;
36-
PaymentPortal = 10 ;
37-
PricingEngine = 11;
27+
Other = 1;
28+
Test = 2;
3829
}
3930
Clients ClientName = 2;
4031
}

0 commit comments

Comments
 (0)