Skip to content

Commit 61182aa

Browse files
committed
Fixed tests with new method signature
1 parent 83899a6 commit 61182aa

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

LinkDotNet.Blog.IntegrationTests/Web/Pages/Admin/CreateNewBlogPostPageTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Threading.Tasks;
1+
using System;
2+
using System.Threading.Tasks;
23
using Blazored.Toast.Services;
34
using Bunit;
45
using Bunit.TestDoubles;
@@ -32,7 +33,7 @@ public async Task ShouldSaveBlogPostOnSave()
3233
var blogPostFromDb = await DbContext.BlogPosts.SingleOrDefaultAsync(t => t.Title == "My Title");
3334
blogPostFromDb.Should().NotBeNull();
3435
blogPostFromDb.ShortDescription.Should().Be("My short Description");
35-
toastService.Verify(t => t.ShowInfo("Created BlogPost My Title", string.Empty), Times.Once);
36+
toastService.Verify(t => t.ShowInfo("Created BlogPost My Title", string.Empty, null), Times.Once);
3637
}
3738

3839
private static void TriggerNewBlogPost(IRenderedComponent<CreateNewBlogPost> cut)

LinkDotNet.Blog.IntegrationTests/Web/Pages/Admin/UpdateBlogPostPageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public async Task ShouldSaveBlogPostOnSave()
3737
var blogPostFromDb = await DbContext.BlogPosts.SingleOrDefaultAsync(t => t.Id == blogPost.Id);
3838
blogPostFromDb.Should().NotBeNull();
3939
blogPostFromDb.ShortDescription.Should().Be("My new Description");
40-
toastService.Verify(t => t.ShowInfo("Updated BlogPost Title", string.Empty), Times.Once);
40+
toastService.Verify(t => t.ShowInfo("Updated BlogPost Title", string.Empty, null), Times.Once);
4141
}
4242

4343
[Fact]

LinkDotNet.Blog.UnitTests/Web/Shared/Skills/AddSkillDialogTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public void ShouldCreateSkill()
3333
addedSkill.ProficiencyLevel.Should().Be(ProficiencyLevel.Expert);
3434
toastServiceMock.Verify(t => t.ShowSuccess(
3535
"Created Skill C# in capability capability with level Expert",
36-
string.Empty));
36+
string.Empty,
37+
null));
3738
}
3839
}
3940
}

0 commit comments

Comments
 (0)