Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Dec 28, 2023
1 parent d5b7626 commit 0982db3
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public async Task ShouldOnlyShowPublishedPosts()
using var ctx = new TestContext();
ctx.JSInterop.Mode = JSRuntimeMode.Loose;
ctx.Services.AddScoped(_ => Repository);
ctx.Services.AddMemoryCache();
var cut = ctx.RenderComponent<DraftBlogPostPage>();
cut.WaitForState(() => cut.FindAll(".blog-card").Any());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,5 @@ private void RegisterComponents(TestContextBase ctx, string profilePictureUri =
ctx.Services.AddScoped(_ => Repository);
ctx.Services.AddScoped(_ => Options.Create(CreateSampleAppConfiguration(profilePictureUri).ApplicationConfiguration));
ctx.Services.AddScoped(_ => Options.Create(CreateSampleAppConfiguration(profilePictureUri).Introduction));
ctx.Services.AddScoped(_ => Substitute.For<IUserRecordService>());
ctx.Services.AddMemoryCache();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,5 @@ public async Task ShouldUnescapeQuery()
private void RegisterServices(TestContext ctx)
{
ctx.Services.AddScoped(_ => Repository);
ctx.Services.AddScoped(_ => Substitute.For<IUserRecordService>());
ctx.Services.AddMemoryCache();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public void ShouldSetTitleToTag()
{
using var ctx = new TestContext();
ctx.Services.AddScoped(_ => Repository);
ctx.Services.AddScoped(_ => Substitute.For<IUserRecordService>());
ctx.ComponentFactories.AddStub<PageTitle>();

var cut = ctx.RenderComponent<SearchByTagPage>(p => p.Add(s => s.Tag, "Tag"));
Expand All @@ -68,7 +67,5 @@ private async Task AddBlogPostWithTagAsync(string tag, bool isPublished = true)
private void RegisterServices(TestContext ctx)
{
ctx.Services.AddScoped(_ => Repository);
ctx.Services.AddScoped(_ => Substitute.For<IUserRecordService>());
ctx.Services.AddMemoryCache();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ private void SetupMocks(ProfileInformation config, ApplicationConfiguration appl
{
Services.AddScoped(_ => Options.Create(config));
Services.AddScoped(_ => Options.Create(applicationConfiguration));
Services.AddScoped(_ => Substitute.For<IUserRecordService>());
Services.AddScoped(_ => Substitute.For<ISortOrderCalculator>());
Services.RegisterRepositoryWithEmptyReturn<ProfileInformationEntry>();
Services.RegisterRepositoryWithEmptyReturn<Skill>();
Expand Down

0 comments on commit 0982db3

Please sign in to comment.