@@ -24,7 +24,7 @@ public async Task read_single_message_stream()
2424 {
2525 var writeResult = await _fixture . WriteNMessages ( "a-stream" , 1 ) ;
2626
27- using ( var response = await _fixture . HttpClient . GetAsync ( "/streams /a-stream/0") )
27+ using ( var response = await _fixture . HttpClient . GetAsync ( $ "/ { Constants . Streams . Stream } /a-stream/0") )
2828 {
2929 response . StatusCode . ShouldBe ( HttpStatusCode . OK ) ;
3030 response . Headers . ETag . ShouldBe ( new EntityTagHeaderValue ( $@ """{ writeResult . CurrentVersion } """));
@@ -35,19 +35,19 @@ public async Task read_single_message_stream()
3535 .FromRequestMessage(response.RequestMessage)
3636 .Index()
3737 .Find()
38- .Add(Constants.Relations.Self, " streams/ a - stream / 0 ")
38+ .Add(Constants.Relations.Self, " streams/ a - stream / 0 ", "a-stream@0" )
3939 . Add ( Constants . Relations . First , "streams/a-stream/0" )
4040 . Add ( Constants . Relations . Next , "streams/a-stream/1" )
4141 . Add ( Constants . Relations . Last , "streams/a-stream/-1" )
42- . Add ( Constants . Relations . Feed , HeadOfStream )
43- . Add ( Constants . Relations . Message , "streams/a-stream/0" ) ) ;
42+ . Add ( Constants . Relations . Feed , HeadOfStream , "a-stream" )
43+ . Add ( Constants . Relations . Message , "streams/a-stream/0" , "a-stream@0" ) ) ;
4444 }
4545 }
4646
4747 [ Fact ]
4848 public async Task read_single_message_does_not_exist_stream ( )
4949 {
50- using ( var response = await _fixture . HttpClient . GetAsync ( "/streams /a-stream/0") )
50+ using ( var response = await _fixture . HttpClient . GetAsync ( $ "/ { Constants . Streams . Stream } /a-stream/0") )
5151 {
5252 response . StatusCode . ShouldBe ( HttpStatusCode . NotFound ) ;
5353 response . Headers . ETag . ShouldBeNull ( ) ;
@@ -58,11 +58,11 @@ public async Task read_single_message_does_not_exist_stream()
5858 . FromRequestMessage ( response . RequestMessage )
5959 . Index ( )
6060 . Find ( )
61- . Add ( Constants . Relations . Self , "streams/a-stream/0" )
61+ . Add ( Constants . Relations . Self , "streams/a-stream/0" , "a-stream@0" )
6262 . Add ( Constants . Relations . First , "streams/a-stream/0" )
6363 . Add ( Constants . Relations . Last , "streams/a-stream/-1" )
64- . Add ( Constants . Relations . Feed , HeadOfStream )
65- . Add ( Constants . Relations . Message , "streams/a-stream/0" ) ) ;
64+ . Add ( Constants . Relations . Feed , HeadOfStream , "a-stream" )
65+ . Add ( Constants . Relations . Message , "streams/a-stream/0" , "a-stream@0" ) ) ;
6666 }
6767 }
6868
@@ -71,14 +71,14 @@ public async Task delete_single_message_by_version()
7171 {
7272 var writeResult = await _fixture . WriteNMessages ( "a-stream" , 1 ) ;
7373
74- using ( var response = await _fixture . HttpClient . DeleteAsync ( "/streams /a-stream/0") )
74+ using ( var response = await _fixture . HttpClient . DeleteAsync ( $ "/ { Constants . Streams . Stream } /a-stream/0") )
7575 {
7676 response . StatusCode . ShouldBe ( HttpStatusCode . NoContent ) ;
7777 response . Content . Headers . ContentLength . HasValue . ShouldBeTrue ( ) ;
7878 response . Content . Headers . ContentLength . Value . ShouldBe ( 0 ) ;
7979 }
8080
81- using ( var response = await _fixture . HttpClient . GetAsync ( "/streams /a-stream/0") )
81+ using ( var response = await _fixture . HttpClient . GetAsync ( $ "/ { Constants . Streams . Stream } /a-stream/0") )
8282 {
8383 response . StatusCode . ShouldBe ( HttpStatusCode . NotFound ) ;
8484 response . Headers . ETag . ShouldBeNull ( ) ;
@@ -94,14 +94,14 @@ public async Task delete_single_message_by_message_id()
9494
9595 var messageId = page . Messages [ 0 ] . MessageId ;
9696
97- using ( var response = await _fixture . HttpClient . DeleteAsync ( $ "/streams /a-stream/{ messageId } ") )
97+ using ( var response = await _fixture . HttpClient . DeleteAsync ( $ "/{ Constants . Streams . Stream } /a-stream/{ messageId } ") )
9898 {
9999 response . StatusCode . ShouldBe ( HttpStatusCode . NoContent ) ;
100100 response . Content . Headers . ContentLength . HasValue . ShouldBeTrue ( ) ;
101101 response . Content . Headers . ContentLength . Value . ShouldBe ( 0 ) ;
102102 }
103103
104- using ( var response = await _fixture . HttpClient . GetAsync ( "/streams /a-stream/0") )
104+ using ( var response = await _fixture . HttpClient . GetAsync ( $ "/ { Constants . Streams . Stream } /a-stream/0") )
105105 {
106106 response . StatusCode . ShouldBe ( HttpStatusCode . NotFound ) ;
107107 response . Headers . ETag . ShouldBeNull ( ) ;
0 commit comments