File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
LinkDotNet.Blog.IntegrationTests/Web/Features/ShowBlogPost Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2
2
<Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
3
4
4
<ItemGroup Condition =" $(MSBuildProjectName) != 'LinkDotNet.Blog.TestUtilities'" >
5
- <PackageReference Include =" bunit" Version =" 1.21.9 " />
5
+ <PackageReference Include =" bunit" Version =" 1.23.1-preview " />
6
6
<PackageReference Include =" FluentAssertions" Version =" 6.11.0" />
7
7
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.6.3" />
8
8
<PackageReference Include =" Moq" Version =" 4.18.4" />
Original file line number Diff line number Diff line change 7
7
using LinkDotNet . Blog . Web . Features . Services ;
8
8
using LinkDotNet . Blog . Web . Features . ShowBlogPost ;
9
9
using LinkDotNet . Blog . Web . Features . ShowBlogPost . Components ;
10
+ using Microsoft . AspNetCore . Components . Web ;
10
11
using Microsoft . EntityFrameworkCore ;
11
12
using Microsoft . Extensions . DependencyInjection ;
12
13
@@ -88,6 +89,7 @@ public async Task ShouldSetStructuredData()
88
89
ctx . JSInterop . Mode = JSRuntimeMode . Loose ;
89
90
ctx . AddTestAuthorization ( ) ;
90
91
RegisterComponents ( ctx ) ;
92
+ ctx . ComponentFactories . AddStub < HeadContent > ( ps => ps . Get ( p => p . ChildContent ) ) ;
91
93
var cut = ctx . RenderComponent < ShowBlogPostPage > (
92
94
p => p . Add ( b => b . BlogPostId , post . Id ) ) ;
93
95
You can’t perform that action at this time.
0 commit comments