Skip to content

Commit

Permalink
Create real instance in test
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Apr 30, 2023
1 parent a43531b commit e545737
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void SetupMocks()
JSInterop.Mode = JSRuntimeMode.Loose;
Services.AddScoped(_ => Mock.Of<IUserRecordService>());
Services.AddScoped(_ => Mock.Of<IToastService>());
Services.AddScoped(_ => Mock.Of<AppConfiguration>());
Services.AddScoped(_ => new AppConfiguration());
this.AddTestAuthorization();
ComponentFactories.AddStub<PageTitle>();
ComponentFactories.AddStub<Like>();
Expand Down

0 comments on commit e545737

Please sign in to comment.