File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
tests/LinkDotNet.Blog.IntegrationTests/Web/Pages/Admin Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 6
6
using LinkDotNet . Blog . Domain ;
7
7
using LinkDotNet . Blog . Infrastructure . Persistence ;
8
8
using LinkDotNet . Blog . Web . Pages . Admin ;
9
+ using LinkDotNet . Blog . Web . Shared ;
9
10
using LinkDotNet . Blog . Web . Shared . Admin ;
11
+ using LinkDotNet . Blog . Web . Shared . Services ;
10
12
using Microsoft . EntityFrameworkCore ;
11
13
using Microsoft . Extensions . DependencyInjection ;
12
14
using Moq ;
@@ -24,6 +26,8 @@ public async Task ShouldSaveBlogPostOnSave()
24
26
ctx . AddTestAuthorization ( ) . SetAuthorized ( "some username" ) ;
25
27
ctx . Services . AddScoped < IRepository < BlogPost > > ( _ => Repository ) ;
26
28
ctx . Services . AddScoped ( _ => toastService . Object ) ;
29
+ ctx . ComponentFactories . AddStub < UploadFile > ( ) ;
30
+ ctx . Services . AddScoped ( _ => new Mock < IFileProcessor > ( ) . Object ) ;
27
31
using var cut = ctx . RenderComponent < CreateNewBlogPostPage > ( ) ;
28
32
var newBlogPost = cut . FindComponent < CreateNewBlogPost > ( ) ;
29
33
@@ -46,4 +50,4 @@ private static void TriggerNewBlogPost(IRenderedComponent<CreateNewBlogPost> cut
46
50
47
51
cut . Find ( "form" ) . Submit ( ) ;
48
52
}
49
- }
53
+ }
You can’t perform that action at this time.
0 commit comments