@@ -19,7 +19,7 @@ public async Task DoesNotChangeImageDomain()
19
19
{
20
20
// Given
21
21
TestExecutionContext context = new TestExecutionContext ( ) ;
22
- context . Settings [ Keys . Host ] = "buzz.com " ;
22
+ context . Settings [ Keys . Host ] = "statiq.dev " ;
23
23
TestDocument document = new TestDocument (
24
24
new NormalizedPath ( "/input/fizz/buzz" ) ,
25
25
new NormalizedPath ( "fizz/buzz" ) ,
@@ -41,6 +41,8 @@ public async Task DoesNotChangeImageDomain()
41
41
public async Task OrdersByPublish ( )
42
42
{
43
43
// Given
44
+ TestExecutionContext context = new TestExecutionContext ( ) ;
45
+ context . Settings [ Keys . Host ] = "statiq.dev" ;
44
46
TestDocument a = new TestDocument ( new NormalizedPath ( "a.txt" ) )
45
47
{
46
48
{ FeedKeys . Title , "A" } ,
@@ -54,7 +56,7 @@ public async Task OrdersByPublish()
54
56
GenerateFeeds module = new GenerateFeeds ( ) ;
55
57
56
58
// When
57
- IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , module ) ;
59
+ IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , context , module ) ;
58
60
59
61
// Then
60
62
TestDocument result = results . Single ( x => x . Destination . FullPath == "feed.rss" ) ;
@@ -65,6 +67,9 @@ public async Task OrdersByPublish()
65
67
public async Task ShouldSetFeedTitleFromMetadata ( )
66
68
{
67
69
// Given
70
+ TestExecutionContext context = new TestExecutionContext ( ) ;
71
+ context . Settings [ FeedKeys . Title ] = "My Feed" ;
72
+ context . Settings [ Keys . Host ] = "statiq.dev" ;
68
73
TestDocument a = new TestDocument ( new NormalizedPath ( "a.txt" ) )
69
74
{
70
75
{ FeedKeys . Title , "A" } ,
@@ -75,8 +80,6 @@ public async Task ShouldSetFeedTitleFromMetadata()
75
80
{ FeedKeys . Title , "B" } ,
76
81
{ FeedKeys . Published , new DateTime ( 2010 , 2 , 1 ) }
77
82
} ;
78
- TestExecutionContext context = new TestExecutionContext ( ) ;
79
- context . Settings [ FeedKeys . Title ] = "My Feed" ;
80
83
GenerateFeeds module = new GenerateFeeds ( ) ;
81
84
82
85
// When
@@ -91,6 +94,8 @@ public async Task ShouldSetFeedTitleFromMetadata()
91
94
public async Task ShouldSetDefaultFeedTitleIfNoMetadata ( )
92
95
{
93
96
// Given
97
+ TestExecutionContext context = new TestExecutionContext ( ) ;
98
+ context . Settings [ Keys . Host ] = "statiq.dev" ;
94
99
TestDocument a = new TestDocument ( new NormalizedPath ( "a.txt" ) )
95
100
{
96
101
{ FeedKeys . Title , "A" } ,
@@ -104,7 +109,7 @@ public async Task ShouldSetDefaultFeedTitleIfNoMetadata()
104
109
GenerateFeeds module = new GenerateFeeds ( ) ;
105
110
106
111
// When
107
- IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , module ) ;
112
+ IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , context , module ) ;
108
113
109
114
// Then
110
115
TestDocument result = results . Single ( x => x . Destination . FullPath == "feed.rss" ) ;
@@ -115,6 +120,8 @@ public async Task ShouldSetDefaultFeedTitleIfNoMetadata()
115
120
public async Task ShouldSetFeedTitleFromFluentMethod ( )
116
121
{
117
122
// Given
123
+ TestExecutionContext context = new TestExecutionContext ( ) ;
124
+ context . Settings [ Keys . Host ] = "statiq.dev" ;
118
125
TestDocument a = new TestDocument ( new NormalizedPath ( "a.txt" ) )
119
126
{
120
127
{ FeedKeys . Title , "A" } ,
@@ -128,7 +135,7 @@ public async Task ShouldSetFeedTitleFromFluentMethod()
128
135
GenerateFeeds module = new GenerateFeeds ( ) . WithFeedTitle ( "Best Feed" ) ;
129
136
130
137
// When
131
- IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , module ) ;
138
+ IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , context , module ) ;
132
139
133
140
// Then
134
141
TestDocument result = results . Single ( x => x . Destination . FullPath == "feed.rss" ) ;
@@ -140,6 +147,8 @@ public async Task ShouldSetFeedTitleFromFluentMethod()
140
147
public async Task ShouldSetDefaultFeedTitleIfNullOrEmptyFluentTitle ( string feedTitle )
141
148
{
142
149
// Given
150
+ TestExecutionContext context = new TestExecutionContext ( ) ;
151
+ context . Settings [ Keys . Host ] = "statiq.dev" ;
143
152
TestDocument a = new TestDocument ( new NormalizedPath ( "a.txt" ) )
144
153
{
145
154
{ FeedKeys . Title , "A" } ,
@@ -153,7 +162,7 @@ public async Task ShouldSetDefaultFeedTitleIfNullOrEmptyFluentTitle(string feedT
153
162
GenerateFeeds module = new GenerateFeeds ( ) . WithFeedTitle ( feedTitle ) ;
154
163
155
164
// When
156
- IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , module ) ;
165
+ IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , context , module ) ;
157
166
158
167
// Then
159
168
TestDocument result = results . Single ( x => x . Destination . FullPath == "feed.rss" ) ;
@@ -164,6 +173,8 @@ public async Task ShouldSetDefaultFeedTitleIfNullOrEmptyFluentTitle(string feedT
164
173
public async Task PreservesInputOrder ( )
165
174
{
166
175
// Given
176
+ TestExecutionContext context = new TestExecutionContext ( ) ;
177
+ context . Settings [ Keys . Host ] = "statiq.dev" ;
167
178
TestDocument a = new TestDocument ( new NormalizedPath ( "a.txt" ) )
168
179
{
169
180
{ FeedKeys . Title , "A" } ,
@@ -177,7 +188,7 @@ public async Task PreservesInputOrder()
177
188
GenerateFeeds module = new GenerateFeeds ( ) . PreserveOrdering ( ) ;
178
189
179
190
// When
180
- IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , module ) ;
191
+ IReadOnlyList < TestDocument > results = await ExecuteAsync ( new [ ] { a , b } , context , module ) ;
181
192
182
193
// Then
183
194
TestDocument result = results . Single ( x => x . Destination . FullPath == "feed.rss" ) ;
0 commit comments