@@ -65,17 +65,50 @@ private class MessageIdToStreamTestCases : IEnumerable<object[]>
65
65
{
66
66
public IEnumerator < object [ ] > GetEnumerator ( )
67
67
{
68
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-02" , MessageId = "hello1" } } ;
69
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-01" , MessageId = "hello2" } } ;
70
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-02" , MessageId = "hello3" } } ;
71
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-03" , MessageId = "hello4" } } ;
72
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-01" , MessageId = "hello5" } } ;
73
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-03" , MessageId = "hello6" } } ;
74
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-01" , MessageId = "hello7" } } ;
75
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-02" , MessageId = "hello8" } } ;
76
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-01" , MessageId = "hello9" } } ;
77
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-03" , MessageId = "hello10" } } ;
78
- yield return new object [ ] { new MessageIdToStream { StreamExpected = "invoices-02" , MessageId = "hello88" } } ;
68
+ yield return new object [ ]
69
+ {
70
+ new MessageIdToStream { StreamExpected = "invoices-02" , MessageId = "hello1" }
71
+ } ;
72
+ yield return new object [ ]
73
+ {
74
+ new MessageIdToStream { StreamExpected = "invoices-01" , MessageId = "hello2" }
75
+ } ;
76
+ yield return new object [ ]
77
+ {
78
+ new MessageIdToStream { StreamExpected = "invoices-02" , MessageId = "hello3" }
79
+ } ;
80
+ yield return new object [ ]
81
+ {
82
+ new MessageIdToStream { StreamExpected = "invoices-03" , MessageId = "hello4" }
83
+ } ;
84
+ yield return new object [ ]
85
+ {
86
+ new MessageIdToStream { StreamExpected = "invoices-01" , MessageId = "hello5" }
87
+ } ;
88
+ yield return new object [ ]
89
+ {
90
+ new MessageIdToStream { StreamExpected = "invoices-03" , MessageId = "hello6" }
91
+ } ;
92
+ yield return new object [ ]
93
+ {
94
+ new MessageIdToStream { StreamExpected = "invoices-01" , MessageId = "hello7" }
95
+ } ;
96
+ yield return new object [ ]
97
+ {
98
+ new MessageIdToStream { StreamExpected = "invoices-02" , MessageId = "hello8" }
99
+ } ;
100
+ yield return new object [ ]
101
+ {
102
+ new MessageIdToStream { StreamExpected = "invoices-01" , MessageId = "hello9" }
103
+ } ;
104
+ yield return new object [ ]
105
+ {
106
+ new MessageIdToStream { StreamExpected = "invoices-03" , MessageId = "hello10" }
107
+ } ;
108
+ yield return new object [ ]
109
+ {
110
+ new MessageIdToStream { StreamExpected = "invoices-02" , MessageId = "hello88" }
111
+ } ;
79
112
}
80
113
81
114
IEnumerator IEnumerable . GetEnumerator ( )
@@ -360,13 +393,13 @@ await Producer.Create(new ProducerConfig(system, SuperStream)
360
393
} ) ;
361
394
var messages = new List < Message > ( )
362
395
{
363
- new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "italy" } } ,
364
- new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "italy" } } ,
365
- new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "france" } } ,
366
- new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "spain" } } ,
367
- new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "germany" } } ,
368
- new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "germany" } } ,
369
- new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "uk" } } ,
396
+ new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "italy" } } ,
397
+ new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "italy" } } ,
398
+ new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "france" } } ,
399
+ new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "spain" } } ,
400
+ new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "germany" } } ,
401
+ new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "germany" } } ,
402
+ new ( Encoding . Default . GetBytes ( "hello" ) ) { Properties = new Properties ( ) { MessageId = "uk" } } ,
370
403
} ;
371
404
372
405
foreach ( var message in messages )
@@ -952,7 +985,9 @@ public async Task ReliableProducerSuperStreamInfoShouldBeTheSame()
952
985
Assert . Contains ( SystemUtils . InvoicesStream0 , producer . Info . Partitions ) ;
953
986
Assert . Contains ( SystemUtils . InvoicesStream1 , producer . Info . Partitions ) ;
954
987
Assert . Contains ( SystemUtils . InvoicesStream2 , producer . Info . Partitions ) ;
988
+ Assert . Equal (
989
+ $ "ProducerInfo(Stream={ SystemUtils . InvoicesExchange } , Reference=, Identifier=, Partitions={ SystemUtils . InvoicesStream0 } ,{ SystemUtils . InvoicesStream1 } ,{ SystemUtils . InvoicesStream2 } )",
990
+ producer . Info . ToString ( ) ) ;
955
991
await producer . Close ( ) ;
956
-
957
992
}
958
993
}
0 commit comments